Well... if system keep restarting, there may be some issues with some system files too. Try restoring your system to a back date. Generally it solves the restart problems. If still it doesnt help. do a full system scan with ur AV in safe mode.

If all fails, try doing a reformat and OS install.

Even if this doesnt solve your restart problem, then you can starting finding fault with HDD or any other hardware.