Server Error after update to 4.1

PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 79956072196 bytes) in /XXXXX/htdocs/analytics/vendor/twig/twig/src/Extension/EscaperExtension.php on line 204

Hi,

Can you try clearing the cache (by deleting everything in the tmp/ directory)?

tried that but got still same error (bytes varying)

Then I guess the only thing I can think of is temporarily increasing the maximum allowed memory size.

I switched from PHP 7.4.13 to 7.3.19 and the issue is gone!

Got the same erro and trying now the solutions

What version are you using? With 7.4.14 I got the same issue.