By analyzing your access token, I found that the logged in user is a guest user, which may be the cause of the problem. As far as I know, sending mail on behalf of a guest user is not currently supported, only on behalf of their identity in their home tenant.
So, try to configure your app as a multi-tenant app, and then change /{tenant_id}
to /common
to log in and send mail using their identity in the home tenant.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.