Whenever you are required to move office 365 mailboxes from one tenant to another, you must perform cross-tenant migration in Microsoft Office 365. The cross-tenant migration process is difficult as it requires multiple tasks. I am also sharing a helpful article and a video so that you can learn and do it easily.
Article Link: Microsoft 365 Tenant to Tenant Migration
Video Link: Microsoft 365 Tenant to Tenant Migration