What to do when your laptop unexpectedly shuts down but the power light is blinking and laptop is not turning back on

How long can it remain on before it does that behaviour? Could it be that the battery runs out of power or does it when connected to mains electrics? Are you expecting a restart after, say, a Windows update?

Sorry there are more questions and no answer but this could be caused by many things.