A Microsoft file hosting and synchronization service.
Hello,
That glitch is usually because the interface struggles when you try to remove an inherited link from a subfolder instead of the main one. Looking at your last screenshot, there's a big clue at the top saying more people might have access because this item is in a shared folder. This confirms that the folder you have selected is actually inheriting its sharing settings from a parent folder higher up the tree.
Because of this, OneDrive won't let you permanently trash the link from here. You will need to track down the absolute highest-level parent folder that you originally shared, select that one specifically, and try trashing the link from its Manage Access panel instead.
If you are certain you are already doing this on the absolute highest-level parent folder and it is still getting stuck in that loop, let me know. We can see about opening the Manage Access settings straight through File Explorer on Windows instead of the browser to see if that forces it through. Just have a look up your folder tree first and see if there is another parent sharing its permissions downwards.