PC Crashing More and More

beginning a few months ago, my PC had begun to start shutting off mostly when I was playing games, no matter the intensity of the game. After ensuring everything was plugged in within the PC and updating drivers, it seemed to fix the issue for a while. But over the course of the last month that has progressively gotten worse. my computer will now shut down even when I simply boot up and begin to login, open up a webpage on chrome, or open any app. sometimes the computer will boot open bios, and sometimes the computer will never turn back on. when it does open bios, it shows that the temperature is consistently around 40°C. I have attempted removing the dust from inside the computer, making sure that everything is properly plugged in inside the PC, making sure it has proper ventilation and updating drivers as needed.

Parts: NVIDIA GeForce RTX 3070 Ti AMD Ryzen 7 5800 8-Core Processor (2) 16GB Corsair Vengeance Memory Lian Li Galahad AIO X570 AORUS PRO WIFI Motherboard