Updating to a more recent Anki version will prevent the popup from appearing, but the underlying issue is likely something on your machine filtering Anki’s internet connection. https://faqs.ankiweb.net/error-establishing-a-secure-connection-when-syncing.html