Or it might be software.
On which OS are you running? Is it up-to-date?
I’d try backing up the data and doing a dic:hardreset, or even a reinstallation from scratch, it might help.
Otherwise indeed it could be the motherboard failing. But in this case it’s hard to solve…