Hi MSuser. I'm Greg, an Independent Advisor.
Test for overheating by installing CoreTemp to monitor temps from the System Tray. Set overheat protection to Sleep or Hibernate if it reaches Core Max temp which it will calculate for your processor. See here:
https://www.thewindowsclub.com/core-temp-monito...
If the PC is overheating then first clean out dust, consider a cooling pad for a laptop, also replacing the thermal paste on the CPU heat sink:
https://www.lifewire.com/ways-to-keep-your-comp...
https://www.youtube.com/watch?v=aD3AGwHKWp4
http://www.youtube.com/watch?v=T0BQ6YUFaoY
I hope this helps. Based on what you report back I can answer any questions and may have other steps to perform.
______________________________________________
Standard Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.