Welcome to the HP Support Community. I'd like to know the following to assist you better:
Is the printer enrolled in Instant Ink?
Are you using Instant Ink cartridges in the printer?
What is the exact error message?
For now. kindly perform the steps mentioned in this document to resolve issues related to ink cartridges.
If the printer is enrolled in Instant Ink, please send us a private message with your Instant Ink account details or you may also respond to the private message I've sent out and I'll help you out, accordingly. Check next to your profile name, you should see a little blue envelope, please click on it.
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!