This is really pathetic. One week ago, my cell phone switches off suddenly while it was charging. I tried to turn it on but I ended up in vain.😂 Next day I went to a repairing shop. They said it was charging IC problem... No softwere issue! It was a relief for me. I got it fixed next day.
I hope your pc gets fixed soon. Good luck!
Hopefully it didn't cost you too much for the repair :)