Welcome to HP support community.
Did you make a copy and check if that prints fine?
If that prints fine, follow the below steps:
The issue could have been caused by the security settings changed on the user profile.
You may either create a new user, login with the new user profile to install the printer or Turn off the UAC from the control panel and Restart the PC.
Here are the steps to configure UAC settings:
Open User Account Control Settings by clicking the Start button and then clicking Control Panel. In the search box, type uac, and then click Change User Account Control settings.
To turn off UAC, move the slider to the Never notify position, and then click OK.
if you're prompted for an administrator password or confirmation, type the password or provide confirmation. You will need to restart your computer for UAC to be turned off.
Let me know how it goes.
To thank me for my efforts to help you, please mark my post as an accepted solution so that it benefits several others.
Cheers.