I'd imagine that the microsoft account trying to log in does not have a subscription package that includesMS Teams work or school (so business not personal).
As a one-person freelancer I have Microsoft 365 Apps for business subscription, that does not have MS Teams.
I think I just need to not try to log in when clicking on invites to Teams meetings sent by clients from the Teams business accounts.