Thanks for the solution but I think I may have solved the issue. At first I thought it may be hardware related like a failing psu. But after I formatted my pc and re-installed windows, my pc works fine now. I'm still stumped on what could've caused the problem in the first place though. =/
Maybe I need to clean my ram or my pc in general since I haven't done so in months and it is getting a bit dusty in there.