Cause: Recurring restarts can arise due to problems in both hardware and software. As far as RAM is concerned, it can be caused due to electrostatic discharge (ESD), overheating, corrosion at the contacts, a module mismatch, or a faulty power supply.
Solution: Replace the memory module for damage due to ESD. To avoid such damage, apply anti-static measures—use anti-static gloves, and keep materials that attract static charges away from your work area. Use stabilisers or high-end SMPSes to eliminate errors caused by faulty power supplies. Clean the contact surface of the memory and socket if you suspect corrosion to be the cause of constant restarts.