Hello,
Thank you for posting in Microsoft Community forum.
Based on the description, I understand your question is related to computer hang.
Try check if press "Ctrl+Alt+Del" together when the machine hangs.
If press "Ctrl+Alt+Del" together can open task manager, check which process is unresponsive and end that task.
Hard drive, RAM, video card, or another hardware can also cause a computer to lock up. Try update drivers, check if there is driver confliction, and uninstall 3rd party anti-virus software.
Press the Windows key + X to open event log, it provide information about errors and warnings that occur on your system. Check the errors or warnings that occurred around the time the system froze.
Have a nice day.
Best Regards,
Molly