My pc has been randomly locking up as in everything on screen freezes and wont unfreeze until I hold down the power button on my case. This issue happened a few times half a month ago and after multiple tries to fix it, the issue stopped until yesterday. It froze up after I tabbed out from a twitch vod and was looking at YouTube and made a high pitched screech similar to a 10 year old with a poor mic on xbox 360 and froze up. Unfortunately didn't have time to diagnose because had to leave for a meeting. Came home seemed fine, put on a playlist from YouTube and left it on as i slept. Woke up and it was still going fine and working fine till 4 hours later when i came back from tue restroom it was locked up. I reset looked up events and only errors i saw were ims services couldn't contact drivers for my external drive and a software license had expired. Kept trying to troubleshoot however it keeps locking up, with one time it restarted on its own, but twice it froze at the login to windows, and after doing a full system restore and running a userbenchmark test it showed my cpu, m.2, hdd's, ram, and gpu are running at minimum below expectations with my cpu doing way below. After that went to find another antivirus besides windows preinstalled and midway through it locked up again. I'm completely lost as to why it is happening. For clarity I did have an emergency repair done by a local shop to fix a broken pin and bend some pins back into place after a failed install of a cpu cooler last month. As for the specs of the pc:
-i3 9100
-hyperx ddr4 2666mhz 2x8gb ram
-gigabyte 365m ds3h motherboard
-wd blue sn550 500gb m.2 ssd primary boot drive
-seagate 2tb hdd
-seagate 160gb hdd (old boot drive)
-wd my passport 1tb hdd xbox 1 old external i reformatted back for pc use)
-asus turbo gtx 1070 gpu
-hyperx usb sound card
-thermaltake smart 80plus white 500w pcu (yes i know it's terrible but was planning on upgrading but didn't get a chance since last time I posted.)
Besides replacing everything except the hdds, m.2, and gpu I'm not sure what to do about this. Any help would be appreciated.
-i3 9100
-hyperx ddr4 2666mhz 2x8gb ram
-gigabyte 365m ds3h motherboard
-wd blue sn550 500gb m.2 ssd primary boot drive
-seagate 2tb hdd
-seagate 160gb hdd (old boot drive)
-wd my passport 1tb hdd xbox 1 old external i reformatted back for pc use)
-asus turbo gtx 1070 gpu
-hyperx usb sound card
-thermaltake smart 80plus white 500w pcu (yes i know it's terrible but was planning on upgrading but didn't get a chance since last time I posted.)
Besides replacing everything except the hdds, m.2, and gpu I'm not sure what to do about this. Any help would be appreciated.