A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
When you share folders, recipients will be asked to enter a verification code if they have:
- A work or school account in Azure AD from another organization
- An email address that isn't a Microsoft account or a work or school account in Azure AD
If the recipient has a work or school account, they only need to enter the code the first time. Then they will be added as a guest and can sign in with their organization's user name and password.
If the recipient doesn't have a work or school account, they need to use a code each time they access the file or folder, and they are not added to your directory.
So we suggest you use work or school account or Microsoft account to access the sharing link.
More information for your reference:
https://learn.microsoft.com/en-us/sharepoint/external-sharing-overview#what-happens-when-users-share