The main motive of using SharePoint and OneDrive was to have an Integrated solution within a Single application for the Office 365 Services. The best would be unlicense the user for SharePoint and One Drive Services.
In an ideal case if the customer wants to still use Microsoft One Drive and SharePoint outside Microsoft Teams then there is no way to restrict the same.
Here is a article for your reference
Why we should not disable Sharepoint in Teams Application