Hello , Welcome to MS Q&A
I think you cannot exchange the HS256-signed Teams token for a Graph/SharePoint token in Azure AD. You must use the Teams SSO flow or MSAL to get a real Azure AD access token for Graph/SharePoint.
References
Pls check and let us know if any further ques
Kindly accept answer if it helps
Thanks
Deepanshu