more ram only fixes slowness ... it won't repair the random restart issue.
This really sounds like a driver conflict issue. When your PC restarts, note the programs that you were running. Try to reinstall those programs only. That might clean things up.