Hi ,
Here's what you'll do: access the device manager, look for the Bluetooth tab > Realtek Bluetooth or Generic Bluetooth > right-click and select uninstall > check the option to delete the driver.
It might ask you to restart, don't restart > download the driver from the link below:
https://ftp.hp.com/pub/softpaq/sp165501-166000/sp165550.exe
Then open the command prompt (admin) and run the commands: sfc /scannow and dism /online /cleanup-image /restorehealth, wait for the process to finish and restart the computer.
After restarting, install the driver from the link I sent, restart again and test.
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
Give feedback if the information was useful or not.
Thanks