We have got similar type of issue earlier - https://stackoverflow.com/questions/68281231/microsoft-teams-connector-configuration-page-fails-to-l... - That got resolved.

Is it happening every time? Is it happening in every team? Can you share Teams Desktop Client version?

Also confirm if same is working on Web.
Thanks
www.000webhost.com