Hi. Sorry for the inconvenience caused. Please follow this HP document on A 'Scanner Error 22' Message Displays on the Printer Control Panel. Make sure this printer is plugged into a direct wall, not a surge protector.
If you're still receiving the same problem, it may be a HW issue, then please contact HP technical support for further assistance. Click here to find out: HP Worldwide Contact.
Good luck.