[M5 MacBook Air] Severe Memory Spike & System Freeze When Running Commercial Project - Seeking Troubleshooting Advice

H i Apple Engineers and Community Members, I recently purchased a new M5 MacBook Air and am experiencing a severe memory issue when running a commercial project. I would greatly appreciate some troubleshooting advice. Symptoms: According to Activity Monitor, memory usage continuously climbs from 10GB to over 30GB during runtime, eventually spiking to around 50GB, which causes the entire system to freeze. Strangely, when I try to stop the program, the memory usage doesn't drop; instead, it continues to increase. Troubleshooting Steps Taken: Running a blank project shows stable memory usage with no abnormal spikes. I have cleared the Xcode cache and restarted Xcode, but the memory still surges when running the commercial project. Colleagues running the exact same commercial project on identical hardware report stable memory usage of around 8GB. My Concern: Since this issue is only reproducible on my specific device, I am considering taking it to an Apple Store for hardware diagnostics. However, I am worried that the issue might not be reproducible during the appointment, leading the Genius to find no hardware or system faults. Before sending it in for repair, could any of you suggest additional troubleshooting steps, diagnostic tools, or log-capturing methods to help isolate the root cause?

[M5 MacBook Air] Severe Memory Spike & System Freeze When Running Commercial Project - Seeking Troubleshooting Advice
 
 
Q