Accidentally created a folder containing a copy of itself and so on
This is entirely possible to create by making a hard link to the parent directory using the terminal 'ln' command. The OS just won't know that MyProject inside of MyProject goes to the same place. It is curious how this may have happened, though.