There seems to be quite a few recent posts about connection errors.
The first line of troubleshooting seems to be questions around whether you are using any “irregular’ networking setup on your machine, eg StarLink, zscaler or a VPN etc.
I noted one possible solution here and it worked for one user, but not others it seems: