Unity automatically duplicates assets

Hello everyone.

I have a pretty annoying issue with my Unity (2020.3.15f2). The problem is that sometimes it duplicates assets automatically, without touching anything. Usually it does that with scripts, but also with scenes…

I really don’t understand why…

It can happen when you rename a script in unity but have it still open under the old name in visual studio and then save it

I don’t know… I have tried to delete VS cache, but scripts and scenes continue to delete/multiply… Sometimes scripts deletes also in the inspector.
Is very difficult to work like that

I think I may have solved it.

The directory of the project was synchronised with iCloud, once I changed directory, the problem disappeared…