Simulator keeps crashing my computer

I'm trying to develop an app. I have to use Xcode 14.2 because my MacBook air is running Monterey. I recently updated to latest. Now, everytime I try to run the app, it locks the computer and causes it to reboot. When it comes back, I get this error: panic(cpu 0 caller 0xffffff7fa2020904): "Enter debugger: submitToRing: Work queue failure detected" @IGHardwareRingBuffer.cpp:1483. There are a lot more codes, but this is the first part. What would cause this?

Your MacBook needs more resources. Investing in a MacBook Pro with more RAM and storage is best.

Simulator keeps crashing my computer
 
 
Q