Make sure you have tried the steps mentioned in this document - 'Printer Failure' Error. If the error persists, I'm afraid this is a hardware issue. Please reach out to the HP Support in your region regarding the service options for your printer.
If the printer is out of warranty, I suggest you upgrade the printer. You may visit Hp Store to check the available printers.
Keep me posted for any other assistance.
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".