I am also experiencing this problem.
I have an excel workbook with several lambdas that process data obtained from multiple stockhistory requests
If I pull too much stockhistory data then I get successive "Excel ran out of resources ..." popups
If I remove the lambdas then I don't get the errors
The problem is intermittent, a reboot clears it for a while but it always returns eventually.
I haven't tried the workbook on older versions of excel.
Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18623.20076) 64-bit
Win11 Home 23H2 build 26100.3613
Ryzen 9 7900 (12 cores) with 64 GB of memory