There's a problem when loading only certain maps where an error moving the brush models to a collection prevents the rest of the map loading. Seems to be related to edit/object mode context being incorrect, but still unsure why it's not in object mode and why most maps load, but not these few that I've found to cause the error.
It seems that the objects I was deleting in a previous bit of code were still being referenced and causing the out of context error. Reordered the delete operation and it seems to be fixed now.
There's a problem when loading only certain maps where an error moving the brush models to a collection prevents the rest of the map loading. Seems to be related to edit/object mode context being incorrect, but still unsure why it's not in object mode and why most maps load, but not these few that I've found to cause the error.
Maps observed to cause the error: e1m1rmx a3