Sleep mode forces an unexpected restart
When the MacBook is put into sleep mode, it often happens that the MacBook performs an unexpected restart when waking up (the battery is not empty, usually over 70%). The error is recognizable by the fact that the login screen with username and password (instead of just password) appears on the Mac, and immediately after logging in, all programs are reopened (open Microsoft Office documents are set to recovery mode). The error currently occurs in almost every 'sleep mode'.
The latest MacOS version is installed and this also happens at different MacOS versions.
MacBook Air (M2, 2022)