Hello
Let me know if you tried the below steps ...
Below are the steps that you need to follow in the order as mentioned ...
Disconnect the printer from the NETWORK
If on wired network : Unplug the Ethernet cable from back of the printer.
If on wireless network : Power of the Wireless router.
Turn off the printer. Wait for 30 seconds.
Turn on the printer. If the printer is in READY state, on the printer front panel go to Setup -> Network Setup -> Network Services -> IPv6 -> Off. Turn off the printer.
Wait for 30 seconds and then turn on. Try printing , it should work.
Let me know if it worked for you.
Regards,
Jabzi

Give Kudos to say "thanks" by clicking on the "thumps Up icon" .
Click "
Accept as Solution" if it solved your problem, so others can find it.
Although I am an HP employee, I am speaking for myself and not for HP.