Renaming a folder inside a group folder generates sync issues for users with open files

i have an issue with group folders:
if userA renames a subfolder inside the main group folder, if userB has an open file inside of this folder keep getting “cannot sync FOLDERNAME: Access denied” and stops syncing all the files inside the folder.
The only way to recover from this is to delete the folder (or move it outside nextcloud) and let sync the new-named one.
How to prevent this from happening?