Welcome to the HP support community.
Reset the printer
With the printer turned on, disconnect the power cord from the printer.
Unplug the power cord from the power source.
Wait 60 seconds.
Reconnect the power cord to a wall outlet and to the printer.
Make sure the carriage can move freely
Turn on the printer, if it is not already on.
Open the cartridge access door.
Wait until the carriage is idle and silent before you continue.
With the printer turned on, disconnect the power cord from the rear of the printer.
Unplug the power cord from the power source or electrical outlet.
warning:
You must unplug the power cord to move the carriage by hand and reset the paper feed mechanism without the risk of electrical shock.
Use a flashlight to check for any paper or objects that might be restricting the carriage, and then remove any paper or objects that you find.
caution:
If the paper tears when you remove it from the rollers, check the rollers and wheels for torn pieces of paper that might remain inside the printer. If pieces of paper remain in the printer, more paper jams can occur.
Reach inside the printer through the ink cartridge access door, and then manually move the carriage.
If the carriage is stuck on the right side of the printer, move the carriage to the left side of the printer.
If the carriage is stuck on the left side of the printer, move the carriage to the right side of the printer.
If the carriage is stuck in the middle of the printer, move the carriage to the right side of the printer.
Remove any loose paper or obstructions found.
Make sure the carriage can move freely across the width of the printer. Firmly push the carriage to the left side of the printer, and then push it to the right side.
Close the ink cartridge access door.
Reconnect the power cord and any other cables to the rear of the printer, and then turn on the printer.
You can refer this HP document for more assistance:- Click here
Let me know how it goes.
To thank me for my efforts to help you, please mark my post as an accepted solution so that it benefits several others.
Cheers.