Hi,@Muhammad Fiqri Aprilian Adriansyah
Thanks for posting your question in the Microsoft Q&A forum.
When you want to create a mailbox for a user through Exchange Online PowerShell, an error occurs.
When synchronizing with AD Connect in a hybrid environment, all user attributes are controlled by on-pre., which means they cannot be created or modified directly in Office 365. So, this error is to be expected. If you want to change or create mailboxes, you have to do it in the on-pre AD and then synchronize it to the AAD via AD Connect.
You can run Enable-RemoteMailbox to create a mailbox.
Finally, since the user's email status is “We are preparing the user's mailbox”, we recommend that you wait a while
If my answer is helpful to you, please mark it as the answer so that other users can refer to it. Thank you for your support and understanding.