Hi,
First, follow below steps to uninstall any currently installed printer drivers from your Mac:
https://support.hp.com/us-en/document/c06960563
Next, let's try installing below drivers.
First, download below drivers to your Mac
https://ftp.hp.com/pub/softlib/software12/HP_Quick_Start/osx/Installations/Essentials/ASU/HewlettPac...
Right-click (or CTRL+Left Click) the file and press Open, then follow the installation.
Once completing the installation, power on the printer and connect it to your Mac, then open System Preferences > Printers & Scanners.
Select your printer and then select the printer model within the Use drop-down menu, then check if you may print.
Shlomi

Say thanks by clicking the Kudos thumb up in the post.
If my post resolve your problem please mark it as an Accepted Solution
🙂