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.

  1. Go to SharePoint admin center.
  2. Sign in to the account that has admin permissions.
  3. Now, opt for Anyone or New and Existing guests for both SharePoint & OneDrive.