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.
The following fixes can help resolve printing errors:
1. Check the Physical Connections to Your Computer:
This is among the simplest solutions for an HP OfficeJet printer in an error state. Confirm that you have a proper and firm physical connection between your computer and printer and that the device is powered up. You should also examine your printer cable for any signs of physical damage, as this could prevent communication between devices.
Sometimes, simply restarting both your computer and printer can be the solution to the “printer in error state” issue. Power off your printer and computer completely, leaving them in this state for a few minutes, then turn them on again to see if the problem is gone.
2. Confirm that Your Printer is Online:
If your printer is offline, you are also likely to see an error state message on your screen. You could try the following steps to bring your HP OfficeJet printer back online:
Click the Start button and choose Control Panel.
Pick the Devices and Printers option.
Check if your printer is listed and confirm its status. If the device is online, its status will be Ready.
If the printer is not in a Ready state, you may bring it online by right-clicking its icon and picking the Use Printer Online option. This changes the display to Ready and should hopefully clear the error state message.
3. Verify that You Have Loaded Paper into the OfficeJet Printer:
A simple, but often overlooked problem is that you could have no paper on the tray. If your HP OfficeJet is in an error state and has no paper in the tray, the first thing to do is power down the device. Load paper and then turn it back on, waiting for a few minutes until it is in a ready state before checking if the error message has cleared.
4. Reinstall the Printer Drivers
If the steps above fail to resolve your printer issues, you may need to manually reinstall or update your printer drivers. To do this, follow the steps below:
Visit the HP support website for your location and search the downloads section to find your OfficeJet printer model. Click on the Download link for a recommended driver from the list.
Double-click the downloaded executable file and extract the driver to a directory of your choice on your computer.
Navigate to the directory and double-click the .msi file to run the driver package installer
An installer app will run and update your HP OfficeJet drivers. Once finished, restart your computer and printer and confirm that your device is working properly.
This May Help,
Peter