Won't open vault on iPhone - "file name invalid"

What I’m trying to do

Open my Obsidian vault. I get this error:

An error occurred while loading Obsidian. Error: The item couldn’t be opened because the file name “4.3.2 Time Well Spent.md” is invalid.

This is just the most recent file that gives this error. If I uninstall/reinstall and re-sync a different file may give the error.

This is an encrypted Obsidian Sync vault.

Things I have tried

I’ve uninstalled and re-installed Obsidian, then re-synced with my Vault (on desktop as well as mobile). I’ve deleted the file on desktop so it wouldn’t sync again on mobile (luckily it was an empty file).

When it first syncs it loads a few hundred files (makes sense) and over a thousand folders (doesn’t make sense).

Currently: 379 files, 1,635 folders according to the app - it will stay open after the first sync but won’t load if I close and re-open Obsidian.

I just

  1. Uninstalled and reinstalled Obsidian
  2. Upgraded iOS to ensure nothing was in memory after I shut down Obsidian
  3. Re-opened Obsidian.

Now the error is "An error occurred while loading Obsidian. Error: The item couldn’t be opened because the file name “Disintegration” is invalid.

Disintegration is the name of my vault.

The vault works fine on Desktop.

The vault also won’t open on my iPad Mini - latest generation, just purchased.

Some progress on this.

I noticed some duplicate files so I used the steps provided at How to find duplicate files on Mac | Macworld to find duplicates files - and there were tons

Somehow I managed to create an infinite (ish) recursion.

I have a vault “Obsidian” and another vault “Vault”

Somehow I managed to create Obsidian > Vault > Vault > Vault > Vault > Vault > Vault > Vault > Vault > Vault

I suspect it was a misconfigured sync - basically creating a sync on a parent and child folder caused the sync to perform recursively.