In htaccess you can set
php_value memory_limit '1024M'
Keep in mind, this only works, if you server configuration allowes "AllowOverride" directive for this directory.
And set it back to php7.4 if it ran before leave it. 1 vCPU is a bit slim, could be the bottleneck.
I'm not a friend og IONOS.