it is probably a faulty memory/hardware thing in your computer causing it.. if you can, you can Google the error code.
just change the Automatically Restart option in control panel somewhere to unchecked then google the error code at the top.
write it down so you wont forget