If XP also has problems, as you wrote, I would guess for a hardware problem.
Once working at a customer with secured data we had a computer that hardware failed. But we could run it long enough to drain it on files by putting it into a fridge...

You could go for a test, does it run for a longer time when there is better cooling? You have to really cool it down if there's a hardware fault.