Try making a standalone copy and check if that works. By this, we can conclude if this is a hardware or a driver issue.
Is the printer connected wirelessly to the MAC?
Restart the wireless router, the printer, and the MAC.
Make sure the printer and the MAC are connected to the same wireless network.
If you have a Dual-band router and both 2.4GHz and 5GHz networks share the same name/SSID, the printer will not be able to connect to the network. In this case, contact your Internet service provider to assign different names to both the networks.
Also, check with your Internet service provider if your router is able to forward 'Bonjour packets'.
The wireless status menu on your Mac should also give us quite a lot of information that would help us identify the issue. You can press and hold the option key on your keyboard and click the WiFi icon to get detailed information.
Update the printer firmware
Click here to download and install the latest firmware from your MAC.
Click here to know different methods of updating printer firmware.
Also, check for any software updates on MAC
Click the Apple icon > About This Mac > Software Update and install any available update.
Perform a ping test to check the connectivity
Obtain the IP address of the printer by printing a wireless test page
On the printer's control panel, press the Wireless button and the Information button at the same time.
Both a Wireless Network Test Report and a Network Configuration Page print.
On the MAC Go to Spotlight > search for Network utility > select Ping tab > enter the IP address of the printer in the box
Check the second box that says Send only > 10 pings
Click on ping > Check the results at the end if any packets are lost
Note: There should be 0% packet loss, share the results in your next post.
Install and print using AirPrint as shown in step 2 of this document.
Hope this helps! Keep me posted.
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".