You could have bad ram. OR you could have a bad GPU. OR you could have both bad ram AND a bad GPU. The two things, ram and GPU, are not linked in a way that one interferes with the other.
One way to test this is to stress the GPU. If you run something like Furmark, you will put a large load on the videocard and it will draw a lot of power and heat up. If all is well with the videocard, nothing will happen. If the card has issues, this test may trigger them.
As far as the ram goes, I personally like to set the ram settings in bios myself. I know that ram comes with profiles that allow automatic configuration but I never trust that. It might be worth your time to read the specs on your ram, then just take a look in the bios to verify...