Mac shutting down randomly
When went to unlock my computer when it was asleep and the lid was open, it had shut itself down instead. I locked it a few minutes ago using control+command+q and then hitting escape. I usually press the button for about half a second when logging in with touch id. It did not wake the first time I pressed it. After 3 presses, it showed the apple logo and booted up.
MacBook Air, macOS 15.2