Yeah, exchanging RAM if possible sounds like some option here, but then there isn't much one can exchange on laptops (a thing which I absolutely hate about laptops). Another possibility would be some loose ends, in case the CPU was socketed maybe it is loose, of the GPU if it is an add in card (slotted). Or some cable. Is it visibly rebooting? Or is nothing to see on the monitor? Oh and get the HDD out as quick as possible.
When you're at it you should look if there are capacitors bulging outsides. Years ago this was quite a major problem to some mainboard vendors.
I'm not familiar with laptop mainboards but once I misjumpered something and it went rebooting in circles. Now that is unlikely to be done by just working with it but maybe also something got loose.
Oh, is there an Nvidia GPU inside? They had some severe problems with a series of chips going smoke off. (Iirc it was some encapsulating problem and under the constant heat they went broken after some time. Many major laptop vendors had this issue.)
Stop TCPA, stupid software patents and corrupt politicians!