This problem is addressed here with solution:
https://learn.microsoft.com/en-us/microsoftteams/troubleshoot/teams-administration/cannot-switch-to-teams-only-mode
To allow external contact you can check these settings:
https://learn.microsoft.com/en-us/microsoftteams/manage-external-access
-------------------------------------------------------------------------------
If this was helpful, please Upvote and Accept Answer.Else, please Comment with further information or related questions.