It seems that you have reinstalled Teams client to fix this issue. Does this issue reproduce in your environment?
To narrow this issue, could you share the error message screenshot with us?
In addition, please check if user can login in Teams web client normally. If there is no issue in Teams web client, it may related to your client, try to update your version of Teams client and restart it to see if can be fixed.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.