Perform basic troubleshooting
You can do some troubleshooting at first when you find your HP printer stops working. You should check the status of the connection between your printer and your computer. Make sure your devices are properly connected with each other, and that the network or the cable you use to connect these devices is normal.
You can also try restarting your HP printer. Turn it off completely and unplug the power cord, leave it for a couple of minutes, and then plug the cord back and power on the printer. See if your printer can print as normally as before.
This May Work,
Peter