Had a very similar problem to yours on a PC many years ago. Turns out it was the processor. I had had 3 new Mobos, 2 power supplies, new RAM, graphics cards and HDDs everything. Sent the processor off to be tested and it turned out that was the problem. Might be right but as you've said these intermittent problems are a real bugger.