A warm welcome to HP Forums! This is a great place to get support, find answers and tips to your technical queries.
Since the issue started after the Mac OS upgrade, its possible that the existing printer driver is corrupted or damaged. Removing the existing printer driver and the setting up the printer with Apple AirPrint may resolve the issue. Let's try these steps:
Please ensure that the printer is up to date with its firmware and Mac is up to date with it's software. If you are unsure you may use the links below to update the printer and Mac software:
1.) Click the Apple menu, click System Preferences, and then click Print & Scan or Printers & Scanners.
2.) Check if your printer name displays in the Printers list, If your printer is listed, click the printer name, click the minus sign to delete the printer.
3.) If you see multiple printer queues for the same printer, remove all extra printers by selecting them one at a time, and then clicking the minus button at the bottom of the list.
4.) Click the plus sign , click Add Printer or Scanner, click the printer name.
5.) Click the Use or Print Using menu, select AirPrint or Secure AirPrint in the pop-up menu. Then click Add.
6.) Try to print and scan.
Let me know how it goes!
If the information I've provided was helpful, give us some reinforcement by clicking the Accepted Solution and Kudos buttons, that'll help us and others see that we've got the answers!
Have a great day!