I haven’t heard anything about connection issue in the past couple days, so you should probably take a look at your setup – antivirus / firewall / VPN / proxy.
https://docs.ankiweb.net/syncing.html#firewalls
Is it erroring immediately, or after a while? If it takes a while, you can also experiment with your network timeout in Tools > Preferences > Syncing.