Right-click on My Computer, click Properties, click the Advanced tab. Under Startup & Recovery click Settings. Under System Failure untick the box in front of Automatically restart.
The next time an error occurs, you should see error code(s) and message(s) displayed on a ble screen. If you can post those here it will help to diagnose the problem.