Is there a way to allow contribution access (adding/editing files) to a folder while restricting users from sharing files/folders? Thanks!
Try going into the O365 admin portal, go down to the Admin center for SharePoint, under Policies there are Sharing and Access control blades. You may want to also enable conditional access and AIP categorization to fine tune handling DLP for SharePoint/OneDrive.