could be a few reasons
heat could be one, if the heatsink is clogged with dust
it could be a memory problem
it could be some corrupt file
just a few guesses
Most commonly this is caused by overheating. If the shutdown is random,
then the cause is definitely hardware. Since this is a laptop, you
can't fix this yourself. Contact the laptop mftr.'s tech support for
repair/replacement.