Sounds like a hardware issue to me. There's no way I could see this as a software bug since programming a computer to restart is something you pretty much can't do on accident.
Lots of PC components shut the machine off if they overheat. A bad power supply can also be at fault.
Maybe the optimization patch is causing your PC to heat up more than before for some reason
