If the error persists, I'm afraid the printhead has gone bad as you have used 2 yellow ink cartridges. Please reach out to the HP Technical Support team in your region regarding the replacement/service options.
You may create a case on the website to obtain a case number if required. Kindly watch this video to know how.
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!
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".