There could be a number of reasons due to which you are stuck in the HP Printer In Error State situation. If you are able to detect the reason then it will get relevantly easier to get your HP printer out of the error state. The reasons could be:
A problem with the software
The printer might be facing some hardware issue
There is an issue with the connection between the system and the printer
Printer jam issue
The ink cartridge might not be placed in a proper manner
You don’t have the latest version of the driver
An issue with the power source
If you are able to detect the issue from the above-mentioned list then you will be able to tackle the situation of the HP printer in error state.