The problem isn't with Windows 10. It is in the HP BIOS software.
HP released some new BIOS firmware for AMD machines at the end of March 2020, which you can download for your specific machines (laptops and desktops) from HP's website.
To resolve the issue:
- Go to HP's website, select the Support Menu, then select Software and Drivers. You will be asked to enter the serial number of your computer which is found at the bottom of laptops or back of desktops, and usually preceeded by "S/N" or "SN". Alternatively, you can download HP's software that will detect your computer's serial number from the same page.
- Next, you will be taken to all of the software and drivers that are specific to your computer based on its serial number. Expand the BIOS section, then download and install the BIOS firmware update.
- After this is completed, you will then be able to install the Windows 10 Updates without experiencing freezing or the unauthorised change to Secure Boot Keys.
The process should be similar for other brands of computers, but it's up to the manufacturers to release the firmware updates.