|Try the HP LaserJet M1522nf printer with a different computer.|
Follow the installation directions.
E.g. You install some of the HP software for it first, and only THEN you plug in the USB cable to it, when you are asked to.
If you still get the same error message on the other computer, the HP LaserJet M1522nf is what is generating the message - the printer has a problem, not the original computer.