Coincidence. Software can't break the hard drive. Is it dead or can you access it? Are you getting a SMART error when booting? I've had hard drives die within months (I have a 750gb hdd from my dad's emachines in my basement. It was a year and a week old). Most mechanical hard drives carry a 2 year warranty. Although being OEM, it would probably have to be warrantied through HP. Which is probably only a year.
I don't know what to tell you, other than hard drives are relatively cheap. If you activated your Windows 10, you should be able to do a clean install. As far as getting the data off the disk, that could be a bit complicated, if it's even possible..