This morning I tried to turn on my mac while it was charging, but it took a few minutes before I actually got it to turn on. After that, the prompt saying 'Are you sure you want to shut down your computer now?' comes up at intervals of around 6 seconds if I don't use the keyboard or trackpad within that time. Either that, or the screen goes to sleep.Every time I switch it back on, it comes up with a message saying something along the lines of 'You shut down your mac because there was a problem'. This is obviously very annoying and I've searched for answers, but have only found some people saying it's a hardware issue due to water damage but I have not spilled any liquid on my Mac. Obviously if I could get this issue resolved that would be great, but in the meantime I wouldn't mind some ways of making my Mac think that there is a finger resting on the trackpad as that seems to stop it from switching off. Any help would be greatly appreciated.