How to find out why your PC shut down for no reason on Windows 10 and 11
On Windows 11 (or if you are still running Windows 10), you can use these three ways to find out why the computer shut down unexpectedly using the system event logs.
Source: windowscentral.com