I understand that you have getting "problem with print head" error. I understand how frustrating this kind of issues could be. This reasons for this kind of issues are hardware issues with the print head or issues with the ink cartridges.
Please check whether the ink cartridge is properly placed. If it is not properly placed, please remove it and then insert it properly. Also, please check whether the print head is removable or not. (You may use the instructions from the attached notepad to get instructions to check the printer head is removable or not.)
Also, please check whether the printer is giving any specific error codes.
You will get the instructions to Remove, clean and then re install printer head from following link:
This link have detailed instructions to fix this printer head issue.
After performing the steps from the above link, if the printer still having the same issue, then it means the printer have hardware failure. Then, you need to contact HP or a local printer technician to repair the printer hardware.
Thank you. Have a nice weekend!!