This article outlines the steps for you to properly set sharing settings in the SharePoint Admin Center, like enable external sharing, default links, etc.