How Do I Troubleshoot HP Printer WPS Connection Failed Issues?
https://123hp-setup-com.us/blog/hp-printer-wps-connection-failed/
To troubleshoot an HP printer WPS connection failed issue, restart your printer and Wi-Fi router first. Ensure WPS is enabled on the router and place the printer near it. Press the router’s WPS button, then activate WPS on the printer. Check the Wi-Fi password and network settings. If the problem continues, reset network settings and update the printer firmware.