Can you show a parts list (or if its a brand name PC, what make/model?)
Does it restart? or freeze?
Does it do it in safe mode?
go to settings/update & security/recovery
under advanced startup, click restart PC now
choose troubleshoot
choose advanced
choose start up options
hit the restart button
choose a safe mode (it doesn't matter which) by using number associated with it.
Pc will restart and load safe mode
If it doesn't happen in safe mode, it might be a driver causing it.