When you boot Windows 7 at the first screen where it asks what language to install press Shift + F10. This will open an command prompt window.
Type the following the commands.
diskpart This will open the diskpart command window
select disk X The disk you wish to install Windows 7 or 8.1 to. According to your specs you have USB 3 ports. Windows 7 does not have native USB 3 drivers. Those will have to be installed after Windows 7 is installed.
clean This will delete the partition table and set up the Windows 7 install. If the install still fails I would recommend you substitute the command clean all . This will zero out the drive but for a 1TB drive it will take some time to complete. This will wipe all data on the drive and make anything unrecoverable.
convert GPT Note: This command is only needed if your firmware is UEFI and not a regular BIOS. You can check this by tapping Esc at boot. I think you may have UEFI if this is a late model computer. http://support.hp.com/us-en/document/c03801890#AbT2, If UEFI is not enabled then enable it if there is a setting.
exit Exits out of diskpart
exit Exits out of command prompt
Press next. Follow the clean install steps here. You do not need to delete any partitions as shown as those are deleted with Clean
I have never seen a computer with these specs have FreeDos installed as an OS. Very unusual.