I have an Acer nutro 5 AN 515-52. It is 2 years old. Up until today it was working well. Then suddenly while using it, the screen froze for a few minutes and then I got this screen with the error code "WHEA UNCORRECTABLE ERROR".

Then the progress remained stuck at 35% for good. I held down the power button to shut it down. When I tried to turn it back on, only the blue light (the one beside the charging port) flashed for a few seconds (keyboard didn't light up) and then nothing happened. The third time I tried turning it on, it did power up normally. I turned it off again to see if it would turn on normally again. But the next few times it didn't. Same as before. After a while I tried again and it booted normally. I've tried turning off and on a few times since then and everytime it booted just fine. All of this happened in the last 40 minutes.
Additional details that may or may not be relevant :
1. When the problem occurred for the first time, the charger wasn't plugged in and the laptop was at around 20% battery. At least that's what it showed when it booted successfully the next time.
2. When it wasn't turning on for a long period of time, the one time it turned on was when I moved the laptop around a bit. It sounds silly and it probably was just a coincidence, but the moving of the laptop and the screen lighting up were very much in sync. I believe after booting was completed, the laptop froze the moment I moved it around again. It could be just a coincidence though, since it didn't require me to move it to boot it since then.
3. After the above happened, it wouldn't turn on again for a while. Someone on this site suggested in another similar question to hold down the power button for 12 seconds, let the laptop sit for 15 munutes, then charge it fully etc. When I let the button go after 12 seconds it booted - some messages appeared on top of the usual boot screen with the Acer logo - then it booted normally. Ever since this the problem hasn't occurred (yet).