If you have installed php72 and php74 in parallel, you must be 100% sure to run the right version. And for the new php, make sure all required modules are installed and configured.
Regarding your php error, this is probably related of the apcu not enabled in cli mode: