|You need to evaluate the problem before swapping out parts.|
Monitor your temperatures with Speedfan or similar program. Temperatures at idle and under various loads are important.
Voltage readings in your BIOS can be a valuable clue.
Running Memtest86 to test for errors will reveal problems there.
Basic maintenance such as a browser clean out (cookies, history, temp internet files, etc), disk clean up, and even a disk defrag.
Since this was a sudden problem, do a system restore to a date before you began having trouble.
Scan your system for infections using both your antivirus program and Malwarebytes.
Update your drivers from component mfg's websites.
Manually check Windows updates.
Post your detailed system specs including all component models and any overclocking of your CPU and/or graphics card. Post the results of all of these tests and processes.
You have to be a little bit crazy to keep you from going insane.