Looks like hardware. Could be heat or a power issue.

For heat: take the cover off, remove all dust inside, see if all fans run and use a ventilator to blow fresh air in. If it's OK now, you know the cause.
For power: try a new PSU.