Could be heat, could be faulty ram. Just to absolutely rule out malware, please run a scan with MalwareBytes (Spybot is old school). Also, boot to safe mode and see if the problem occurs there. If it does, then it's almost 100% certain that it's a hardware problem.