Hi Graham,
Can you try logging into Teams via Incignito mode or private mode in the browser and see if you get same error? If yes you will need to check with the company/tenant admin that sent you an invite to access the teams.
Also check if you have signed in to another tenant and it has cached the previous tenant information.
Hope this helps.
JS
==
Please Accept the answer if the information helped you. This will help us and others in the community as well.