My fathers computer recently had a similar problem (i.e. sudden restarts, BSODs and freezing). Reason was a dying PSU, so maybe try to get a good working PSU and test it out for a few days.
But if you've noticed that the problems started when you installed the new RAM, then maybe running...