You could try to follow these steps to restrict these users file permissions for Teams members:
1) Open your Teams app. Go to Teams > Select a specific team and channel > Click Files tab > Click the specific files > Open in SharePoint
2)In the Manage Access pane, click the members and set the permission to only read mode.
3)Now Teams members cannot remove your Teams files.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.