I recently bought a PC in parts. I installed Windows 10 on it and it worked flawlessly for about a week and a half. However, now it turns off whenever I'm doing something, even if it's not a heavy software like a video game. I think this issue may be related to the power source. I need some guiding to know if indeed I need to change this part or if it may be another issue causing the crash.

My computer components are:

* AMD Ryzen 5 3600
* MSI X570 gaming plus motherboard
* AMD RX580 graphic card
* 8gb x 2 corsair ddr4 300MHz Ram
* HDD Toshiba 1.5TB
* SSD PNY 960GB
* PCIe WiFi card
* Power source : Corsair Vs650W 80+

Please help me. I spent a lot of money on this computer and I really need it to work properly.