when you build your PC, check your ram the second you get the thing fired up and OS loaded on.
I'm not sure in other windows versions, may have to google it, but in windows 10, there is actually a memory diagnostic tool. Or you can download and run Memtest86 from their website. it is free.
Memory is one of the components of a new PC build that I have had bad luck with, and often come bad the first time, and in some cases the second time it is delivered.
In my latest build, I spent days trying to track down a problem with the new video card, as the errors that kept popping up while doing graphic programs (i.e. Solidworks) and games was 'OpenGL error code: 3' and thought it was the video card because of it saying Open GL....It is not, I ran windows 10 memory diagnostic tool and right away it came up with errors on the RAM. Getting it RMA'd right now, waiting on new to arrive.