Could be a number of things.
So it litterally just turns off? (As opposed to doing a graceful shutdown)
I would check your cpu cooler, is it secured? Leave it in the BIOS, does it do it then?
Its either power or heat related (if heat its something daft as its not under load using word)