That error can be caused by any antivirus/firewall/VPN/proxy blocking the connection. Error establishing a secure connection when syncing - Anki FAQs
If you’ve tried different wifi, then the issue is on your machine. Make sure to check “iCloud private relay” because that’s often a problem for iOS/MacOS users.
Also check another recent solution: