Sony VAIO laptop shuts down by itself | Joachim De Zutter
Laptop model: VPCEB4M1E
"With the computer plugged in to AC power, enter the BIOS and leave the computer powered on for 5 to ten minutes, or for the length of time you've determined that it takes for the computer to shut down or restart. If the computer shuts down or restarts while in BIOS, this indicates an issue with hardware" - https://us.en.kb.sony.com/app/answers/detail/a_id/32876