How to reproduce:
1. Open the attached project "HierarchyBugs_H1_H2_H3"
2. Go to QA -> H2 - GetDefaultNodeFlags stack overflow (CRASHES THE EDITOR)
3. Close the Editor and observe the results
Expected results: The Editor doesn't crash
Actual results: The Editor crashes with "Stack overflow in unmanaged" - base.GetDefaultNodeFlags calls into native, which invokes the managed override again through InvokeGetDefaultNodeFlags, and the pair recurses until the stack is exhausted
Reproducible with: 6000.0.81f1, 6000.3.17f1, 6000.5.9f1, 6000.6.1f1, 6000.7.0a6
Reproducible on: Ubuntu 24.04.4 LTS, macOS Tahoe 26 (M1)
Not reproducible on: No other environment tested
Note: Sometimes the Editor crashes instantly, sometimes you need to close it for it to crash