Windows 11/10 may show a message such as “Your device ran into a problem and needs to restart” before restarting.
Note the stop code shown at the bottom of the screen and use it to guide further troubleshooting (for example, storage or power‑related drivers if the code is