Had this issue where even office doesn't work anymore. Fix for me was to redo the windows account.
Steps:
Removed user under user accounts on control panel
Removed the Profile list under registry
restarted and added ad user again to computer accounts with administrator rights as before
logged in to the account and was able to activate office and login to teams without issues.
Hope this helps.
PS. I didn't get the root of the problem just a quick fix