When you face hp printer in error state issue, the first thing you can do is set your device in the ‘Default Printer’ mode. Go through these steps.
Navigate to the control pane and press ‘OK.’
Select ‘Devices and Printers.’
Navigate to your HP printer from the list that you see and right-click on it.
Choose ‘Set as Default Printer.’