While migrating Office 365 shared mailbox data, make sure to “Ignore O365 license Validation” by right-clicking on that particular mailbox. And, this applies only to shared mailboxes.