My computer keeps restarting when it is idle for a while but, i am able to trigger a restart when i start up a game or when i use vlc media player. I checked the event viewer and i got a critical error code 41 with no bug checks.
I have run memtest, replaced my PSU, reinstalled windows from a USB, ran a disk-check, removed my GPU and booted the system from the on board card. I reseated my cpu and reapplied thermal paste as well as cleaning my fans and dusting out my PC.
None of this helped so i tried replacing my CMOS battery and resting the bios which did nothing. I then formatted my HDD and tried to reinstall windows but the system keeps restarting mid installation. What i also noticed is if i run prime95 in blend mode my PC restarts instantly, i am also able to watch videos longer in windows media player than VLC before my system crashes.