When you use Open IN SharePoint from file in teams it does not respect the account you are using on launching SharePoint in your browser
When you use Open In Sharepoint form Files in teams it does not launch the browser using the same identity as you are using in teams. So if you have any other office 36 session active you tend to get an access denied. (very confusing to the user). Launch the browse in the same session.