Are you connected to a power supply or using the battery? If it's the latter, maybe it's the battery.
If you are connected to a power supply, then maybe something is overheating and powering down the laptop to save it from burning out? Is the fan running to actively cool the CPU? Can you...