You may want to consider replacing the 2.5" mechanical hard drive with a better performing 2.5" solid state drive (SSD).
After you replace the drive, you can use the cloud recovery tool with another Windows PC running W7 64 bit or newer to create a bootable USB recovery drive that will reinstall W10, the drivers and the software that originally came with your notebook on the new drive.
Here is an info link for how to use that utility...
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".