Welcome to the HP Support forum. Thank you for posting.
HP produces high quality products only and does its best to keep the quality as high as possible. I have many years experience with lots of vendors and I can guarantee you there are no better PC vendor.
With regards to your questions/issue - this is Windows issue specifically, not HP caused issue.
Did your PC come with Win 8 (8.1) preinstalled ?
Since the W10 installation failed, you will need to restore your PC to the original factory condition (e.g. with W8) and if you decide later to upgrade to Win 10, here is the official article >> http://support.hp.com/us-en/document/c04730900
There are some steps that you need to follow to prepare for the upgrade (such as uninstall your AV and security software, update drivers, etc...)
How to perform recovery to factory default condition:
Let me know if something is not clear and if you require assistance, please provide as many details as possible. Thank You!
Your feedback and update are important. Click below on Accept As Solution and Likes+ icon if my comments helped or to say thanks I work for HP Inc. *** I express personal opinion only and do not speak for HP *** Volunteer *** My location: Europe ***