Chosen Solution

It turns off and then on. And then off again.

Have you checked for the RAM? This on/off cycle is usually caused by unsupported or malfunctioning RAM. All you need is to pull out the RAM and clean the connecter surface with a mild cloth and reinsert it. Also, don’t forget to check if the exhaust fan is functional and dust-free. Source: Laptop won’t turn on Troubleshoots