MacBook Air randomly switching off
I have a MacBook Air M2 (running Sequoia) and sometimes it just randomly shuts off when I close the screen and immediately re-open it. Once it switches back on, I just get a message saying something like "A problem has occurred and your device shut down unexpectedly" and asks me if I want to report the problem. I've tried multiple times but nothing changes. I've tried chatting with Apple Support but they are just telling me to enter "Safe mode" which I don't even know what it is.
Can someone please help?
Thanks
MacBook Air, macOS 15.2