I expect that excluded files are still indexed.
I’m under the impression that Obsidian is restricted to 4 GB of RAM as mentioned in Obsidian build without V8 pointer compression, altho I see now that the limit is per process, so maybe that explains the numbers you’re seeing.