First, read the message carefully: a "hardware unknown error" and a hard drive error are very different problems, and the fixes barely overlap.
Work through the basics before anything else. Check the disc for scratches and try a different drive, confirm the boot order in the BIOS, test the RAM with MemTest86, and disconnect any non-essential USB devices during setup. A failing hard drive or a scratched disc causes the large majority of these failures.
Be wary of pages that respond to any Windows error with a registry repair tool and a download link. Registry software does not fix a failed XP installation, and those links are frequently bundled with unwanted software.