If your printer status displays "Fix HP printer in error state" there may be a problem with the printer itself. Make sure the printer is on and check if there is no Wi-Fi or cable problem. Check it for less paper or ink, and make sure the cover isn't open and the paper isn't jammed. Make sure you follow the instructions carefully to avoid interruptions.

1.Make ports settings changes. Press the Windows logo key + R on your keyboard > type Fix HP printer Error State and hit Enter to open the Device Manager.
2.Make sure that your printer is Online.
3.Reinstall the printer driver.
4.Set the Print Spooler service to automatic.
5.Update Windows.
Printer in an Error state:
The ‘HP printer is in an error state’ issue can also arise due to a faulty or incompatible printer driver. However, this can be fixed easily by updating or reinstalling the drivers. Moreover, it is vital that you install the correct driver for your printer model because installing the wrong driver will further keep your printer in an error state. The easiest way to find the correct driver is by downloading it from the official HP website.
To download the drivers, Go to the official website> choose your printer> and download drivers.
Hope this helps, J Wick