Hi @Sergio Londono ,
Thank you for posting in this community.
When I delete members and visitors to this file, then share this file. The inheritance of this file will be automatically broken. However, the inheritance of the Document Library Level will not be affected.
It seems this is not a common issue per my test. However, we can work together to narrow down and resolve the situation. So, Please kindly provide more information below to let us work further.
1.Before you do this, make sure that the permission inheritance of the document level is not broken?
2.Whether all SharePoint libraries have the same problem? You could create a new SharePoint library to check.
3.This issue occurs if it is a specific library. As a workaround, after setting unique permissions for the file, go back to the document library settings and ensure that the inheritance is still enabled. If it appears disabled, you can re-enable it manually.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.