@aryan12qw, Welcome to the HP Support Community!
I understand you are not able to print. An E4 error occurs when there is a paper jam.
Paper jams can be real or false. The printer might report a paper jam even when there is no jammed paper. The following steps apply to both real and false paper jams.
Kindly perform the steps mentioned in this document to resolve this issue - E4 Error (Paper Jam)
Hope this helps! Keep me posted.
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!
Have a great day!
KUMAR0307
I am an HP Employee