MB would be the main issue causing the reboot. Check the capacitors on the MB. If there is any capacitor swelled. It will affect the electricity stability of the MB.
If not, please check the core temp of the CPU, the computer will shut down while the CPU is over heat in order to protect it.