Provide either a fixed /etc/php/*/php.ini both for the PHP7 and PHP8 builds for web and cli SAPI or preferably an equivalent buildtime change of the respective setting. Raise the process memory limit to 512 MB. The default 128 MB are not suitable in some cases and lead to unexpected behaviour.