If you want to outright block access to other tenants, use the Tenant restrictions feature: https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/tenant-restrictions
Alternatively you protect your data via sensitivity labels/IRM, so even if someone manages to exfil it, it will be inaccessible.