So my laptop suddenly shuts off recently. Thinking battery died so I put it to charge and turn it back on, but the power button wasn't working (on keyboard). When I pressed random keys on the keyboard it would turn on and last a certain time before turning off again. (around 1-5 seconds on average). I finally got it on hence I'm typing this but the way I have it on makes my laptop unusable, I have a water-bottle (1.5L fulled) on top the keyboard because keeping a heavy object on the keyboard keeps it on (as well as spamming keys to keep it on). if I remove the water bottle it instantly shuts off and goes through the on and off process. I don't know if it is software or hardware problems but I hope I can receive some help here.
Things to note if it helps; I recently updated windows, downloaded a file that had a virus but it's removed don't know if it's still present, undervolted my i3-8130U -150mV and iGPU -110mV.
Thread was edited to add model name to the title