The system restarts after a minute or so.
Here are a few suggestions to fix the issue.
1.Open Control Panel\System and Security\System\Advanced\Settings under Startup and Recovery. Now uncheck the tick mark against Automatically Restart under System failure. Click OK. Now restart the PC. Do you get any message?
2. Try to boot in safe mode and scan your system to make sure that there is no malware.
3.. Look at %SystemRoot%\MEMORY.DMP to get any clue related to it.
4..Try the following command under CMD:
Dism /online /cleanup-image /restorehealth