Hello,
Memory error is not related to theme update but to server settings because it appears even with the Storefront theme https://recordit.co/ydtxIfuVhp
So, contact your hosting provider and ask to update PHP to version 7.4 and increase PHP memory limit to 128M or 256M.
Regards