Question computer freezes while idle or browsing but not while gaming!!!!!!

whole system frezees while idle or in browser no matter what than I mut hard reset holding power button to shut down but while gaming 3-4-5hours nothing happens it blows my mind(sorry for bad English)
 
might be but still unlogicaly that it freezes on no load vs load while gaming something stinky happening ill go tomorrow to my friend he has ddr 4 memory and 600w psu so I will se what it is
 
1.Go to windows power management and change your plan to maximum performance.
2.Open task manager and try to find if anything is causing the overload -> Memory,CPU,DISK etc....


If that doesn't work please go to Windows folder and search for minidump file.
Simply hover over task bar than right-click , properties , start menu , customize , check "RUN" option . Go to "RUN" from windows start menu and type %SystemRoot%. Press enter and find Minidump or Memorydump folder.

Download BlueScreenView and open the dump file.Paste result here.