in the comment i said that after unplgging my pc and leaving it for a few minutes everything returned to normalmy pc became a potato. but its not anymore
then it's an overheating problem
remove recent hardware/buy a better PSU, your PC is becoming bottlenecked and thats a good way to start a fire also