Fixing the unexpected computer shutdown problem can be tricky, especially if the computer enters a restart loop without allowing you to do anything. In most cases, the PC shuts down quickly after the start of the system and displays the following message:
Your PC ran into a problem and needs to restart. We’re just collecting some error info, and then you can reboot.
Method 1. Prevent PC from restarting automatically
First of all, to prevent the computer from automatically restarting, you need to take its permission to do so. To do it, you must disable the auto PC restart option. Here is a guide on how to do it:
AdvancedStartup & Recovery Settings
System FailureAutomatically restartOK.
Method 2. Run a system file checker or DISM scan
Command PromptRun as Administrator
Check if the problem persists.
In case you couldn’t run SFC scan, give DISM scan a go:
DISM /Online /Cleanup-Image /restorehealth
This scan may take up to 20 minutes. After this scan, run the SFC scan again.
Check if the problem was solved.