|this could possibly be a malware infection or a cpu overheating. |
u did not list any computer specifications, so we dont know what were dealing with.
but download malwarebytes and perform a full system scan in safe mode delete what it finds, download and install speedfan monitor ur pc temps post them here.
download memtest86 and test the memory for any errors, defrag ur HDD as well, remove any unwanted programs or programs that u dont use for example if u have multiple antivirus software remove pick one remove the others...
computers are a second home