Solution: The reason why you are encountering this error is that the Azure AD user does not have a valid M365 license and therefore, no Exchange Online mailbox is available for their use.
You can also refer to the link for more reference Click here
If you are looking for anything which you cannot find, please drop us an email on office365support@xecurify.com