Is this behavior specific to surface devices and also have you tried connecting with different Wifi?
If this is specific to Surface devices you can have quick look over the troubleshooting steps from here.Surface can find my wireless network but can’t connect
You can also try checking the enable Single Sign-on for this Network and see if that sorts the issue.
-Open "Settings." Click the "Network" icon, and then right-click the name of the wireless connection you want Windows to use to connect.
-Click "Properties" on the context menu, and then click "Advanced Settings."
-Enable the option box labeled "Enable Single Sign-on for This Network." Click the radio-button option labeled "Perform Immediately Before User Logon."
-Click "OK" in the Advanced Settings window to save the changes. Click the "OK" button in the Properties window to complete the Single Sign-On configuration.
Hope this resolves your Query!!
----------
--If the reply is helpful, please Upvote and Accept it as an answer–