While using HP printers, users have confronted the HP Printer in Error State problem many times. In this situation, the printer will no longer perform its operations correctly and show the message that the printer is in error state. This problem is mainly a connection issue with your system. Also, it can occur due to driver errors.
https://www.hptechnicalsupportphonenumber.com/blog/hp-printer-in-error-state/