Change your WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT in your wp-config.php and php.ini. I had it at 512M when started showing the error, then I changed it to 256M ! It’s Working perfect again. ALL GOOD!!!
Setting the?memory_limit?to a very high value might be an issue too, this limit is also?protecting your server by blocking inefficient PHP code. If you allocate too much memory, and there are poorly coded scripts, it might be counterproductive because your server could start eating into disk swap space.
https://docs.wp-rocket.me/article/128-increase-php-memory-limit-in-wordpress