This issue might be caused by cached identities from the previous tenant. It most commonly occurs during a tenant-to-tenant migration. To resolve this issue, remove the cached Microsoft Office account identities.
If that does not resolve, Alternatively follow the steps here:
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola