Question RAM causing restart or screen stuck or BSOD while gaming.

Jun 12, 2022
PC details:
Ryzen 5 2400g
RTX 3060
mother board B450 M s2h
2 sticks of 8 XPG Spectrix D60G
250 GB SSD hp
1 TB HDD seagate barracuda

OS build: 19044.1741

Whenever I play a game i.e Maneater, Control, A Plague Tale Innocence, Valorant. Screen freezes or computer restarts or BOSD appears.
Time varies i.e. Maneater loads and game starts then screen stuck, Plague Tale restarts PC at loading screen or it loads and get stuck after a few seconds , Valorant stucks after 10 rounds of comp or so and I have to restart the PC.

Solutions tried:
Stressed test GPU and CPU. Didn't restart during those.
Checked Power Supply and temps all Ok.
Checked SSD and HDD could not find any problems.
Once i removed one stick i could play a game for 10 minutes i.e Maneater and it didn't stuck but right after that it restarted.
( I did send the RAM one stick because it restarts on both to a friend to check to rule the RAM out but I believe it's the RAM. Still if anyone knows please tell me I am really tired of this BS)
Jun 12, 2022
brand and model of the psu?
Cooler Master 525 watt