Hello,
Okay first XP does not like 4GB of RAM. Epically the 32 Bit version of XP. So that could be why you keep getting errors thrown at you constantly. Also you need to update to SP3.
To check your RAM run MemTest86.
Memtest86 - Download Page
Cheers,
Mak