You mentioned HP Smart. There has been a problem with HP Smart recently. '
Make sure you have the latest version from the microsoft store The latest version as of Jun, 2024 is 154.2.1072.0 (USA English). If you do not have this version then go to the Microsoft store, find HP Smart, and click "update". If the button "update" is missing then you need to run "wsreset" from the Windows search bar.
Reconnect by first resetting the printer WiFi with the video
For another video that shows WPS and more ways to connect, click here.
WPS is explained on page 5 and 22 of the users manual.
Full feature driver March 2022
Deskjet Reference 4152e