Get a new cable. Test your ram with memtest86+.
www.memtest.org
Does the bios and XP setup see the full capacity of the drive? You *might* have a 8gb or 32gb bios limit if it's an old computer and this can cause issues with the install if the full capacity is not seen. A 40gb drive should be seen as 38. something gigs.