My macbook air M2 restarts (Panic)
My macbook air M2 restarts when going in to screen saver or mode. When I come back to it, all work is lost and open windows closed. The Mac is back to the login screen. I have tried turning of all of the battery and screen saving settings in Sys Preferences, I booted in safe mode and also did a diagnostic it shows no hardware issue but the problem still remains.
MacBook Air, macOS 15.6