I searched this problem in Google and found some links. Maybe it helps you
[https://support.hp.com/us-en/topic/printscandoctor-printing-problems|https://support.hp.com/us-en/topic/printscandoctor-printing-problems]
[https://support.hp.com/us-en/document/c04326460|https://support.hp.com/us-en/document/c04326460]
[https://support.hp.com/us-en/topic/windows-10-support-center-printing|https://support.hp.com/us-en/topic/windows-10-support-center-printing]
[https://www.gethumanhelp.com/hp-printer-not-printing/|https://www.gethumanhelp.com/hp-printer-not-printing/]