May be wrong and not temperature, but just put your hand by the outlet and test the temp on battery and mains.
My laptop sent me bonkers until I stumbled across the air flow solution on the internet.
The inlet was on the bottom of the machine on a dusty electrostatic surface.
I opened the fan area and discovered a 'filter' on the air inlet. Only thing was it was a 4-5mm mat of dust. I removed that and kept the desk clean. Job done.