MacBook Air M2, freezes, flashes a purple screen then restarts
I have a 2022 MacBook Air M2, and its started freezing up (screen still on, no beachball, just frozen), then after maybe 30 seconds or so it will flash a purple screen, and then it restarts.
This happens sometimes several times in a day, and sometimes only occasionally, and can sometimes go days without happening. It also seems - based on the "your computer restarted because of a problem" popup - to happen sometimes when it's in standby (i.e. I closed the lid and left it for half a day).
I don't have a huge amount of stuff installed on it, and I don't tinker too much under the hood. I've removed several things to try and isolate the problem, but it seems to not have changed anything. I don't have it connected to any external monitors or drives.
Does anyone have any ideas where I can start troubleshooting this? I've attached the etrecheck report for more info.
MacBook Air, macOS 15.1