Hello there,
In Windows, search for and open View advanced system settings.
Click "Settings" in the Startup and Recovery section.
Remove the check mark next to Automatically restart under System Failure, then click "OK".
Restart the computer.
Corrupted system files are one of the possible reasons why this issue is happening. Try the below steps and see if they are helpful
Press F8 while booting your computer to access the System Recovery options.
Click Troubleshoot.
Select Command Prompt.
Enter the following commands below, then press Enter after each command:
chkdsk c: /f
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd
bcdboot c:\windows /s c:
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–