This problem starts blocking the collaboration and sharing of content with anyone outside your organization
Solution: First of all, change the external sharing setting for your organizations. Go through the below steps to do this.
- Go to SharePoint admin center.
- Sign in to the account that has admin permissions.
- Now, opt for Anyone or New and Existing guests for both SharePoint & OneDrive.