First run memtest to kinda make sure it's not your ram.
Find the service manual of your laptops model and reapply the heatsink thermal paste. If this doesn't resolve it there's probably something wrong with your motherboard or the reading of your CPU's temp sensor is correctly/incorrectly reading too high causing it to shutdown. |