This is, of course, a travesty but it did cause the compiler serious problems. Specifically, my Mac ran out of application memory (not a big surprise) and panic'd. I'm not making any excuses for my actions but I did wonder if the compiler has sufficient protection from idiots like me.
Something like this should probably be made efficient eventually, do you want to file an issue with the general "shape" of your data (probably what you described)? No need to attach the full file.
I'll be happy to file an issue at GitHub if it's deemed worth it,
I will add here, while typing, that this problem has a life after death .. Xcode runs out of application memory, then macOS requests Xcode and other apps be force-quit, but it doesn't take long for that option to freeze up, followed by a forced restart.
That's all a 'normal' progression in the face of this pathology .. the kicker comes when, on the restart Xcode tries to restore its state and death by 'memory-hunger' repeats.