Question PC Freezing, is it due to RAM?

Apr 22, 2020
9
0
10
Around 6 weeks ago I built my first pc, and there's been one constant problem I've been having, which is freezing. I don't mean just the application or program, I mean the entire pc. The screen shows the last image before it froze, and it stays like that until I reboot the computer.

It frequently happens with Minecraft Windows 10 Edition, whenever I open a chest, disconnect, close the game, record the screen, press the windows key, or sometimes just randomly. It also happens with Minecraft Java Edition but only when I close, minimize, record, and use heavy modifications. It hasn't happened elsewhere, just on those 2 games. It kind of baffles me because sometimes I run more demanding games but nothing happens.

My best guess is that the RAM is overloading/has a defect; I checked Task Manager and it said 2.1 GB Hardware Reserved, but even including that the numbers don't add up.

Specs:
Ryzen 3 3200G
ASRock B450M-HDV R4.0
OLOy 8GB 3000mHz

Many thanks to anyone who responds!