If you look at the PHP Supported Versions page, you'll see that PHP 7.4 is now at end of life and is not even receiving security patches.

https://www.php.net/supported-versions.php

This means upgrading to Zen Cart 1.5.8 and PHP 8 *needs* to be in your 2023 plan.