This is not an error. According to the documentation, the from property indicates the owner of the mailbox from which the message was sent. The value must correspond to the mailbox actually used. This value cannot be changed in most cases, even if you customize it when sending the request, except in sharing or delegation scenarios.
If you need to set the sender details of the message, you need to follow the following scenario:
See the link below for more details:
https://learn.microsoft.com/en-us/graph/api/resources/message?view=graph-rest-1.0#properties
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.