It definitely is a hardware issue since the
computer was freezing even before the user purchased a new hard drive.
Sometimes hardware devices or drivers installed in the Computer cause problem during installation of Operating Systems. It could be a VGA,NIC ,Sound,or any other Card.
I would suggest you to show your computer
to a hardware technician or vendor from whom you purchased this computer.