Well best case you will have to do a repair install of Windows XP. Maybe get new RAM as it sounds as if this stuff is almost done for.
If the RAM turns out okay and the system is still this unstable. You might be forced into a reinstall.
Run MemTest86. We will see what we can do after that.