Additional file-related features and issues within Microsoft Teams for business
I was experiencing the same issue and followed these instructions:
Log out of and close MS teams.
Go to the following folder %AppData%\Microsoft\Teams and delete the entire contents (there was one folder that would not delete and so I left this).
Restart teams and then the files location worked.