How Do I Troubleshoot HP Printer WPS Connection Failed Errors?
https://123hp-setup-com.us/blog/hp-printer-wps-connection-failed/
To troubleshoot HP Printer WPS connection failed errors, first restart your printer and Wi-Fi router. Ensure the router’s WPS feature is enabled and place the printer within range. Press the WPS button on the router, then activate WPS mode on your printer. If the connection still fails, restart both devices and check your network settings.