Unable To Create Thumbnail For File

On the backend, all images are getting similar alerts:

Error Unable to create thumbnail for file "/var/www/vhosts/httpdocs/images/detailed/2/785sc-485s-1_cr6m-1g.jpg": Unable to open image /var/www/vhosts/httpdocs/images/detailed/2/785sc-485s-1_cr6m-1g.jpg

In the error log:

PHP message: PHP Notice:  Undefined index: grid_id in /var/www/vhosts/httpdocs/app/Tygh/BlockManager/RenderManager.php on line 686
PHP message: PHP Notice:  Undefined index: order in /var/www/vhosts/httpdocs/app/Tygh/BlockManager/RenderManager.php on line 688

I am not sure if they are related.

Cleared cache.

Cleaned up generated thumbnails.

How to fix? Thanks.

Upgraded to PHP 7.4.5 fixed the issue.

There is a fix also for php 7.4 not 7.4.5?

I am having the issue

In cpanel I see 7.4 and 8 not 7.4.5...