How to reproduce:
1. Open the user’s attached “SerializedFlagsCrash.zip” project
2. In the Hierarchy, select “Test 1” and “Test 2” GameObjects
3. Observe the result
Expected result: No crash
Actual result: Crash
Reproducible with: 2022.3.14f1, 2022.3.17f1, 2023.2.6f1, 2023.3.0b3
Not reproducible with: 2021.3.34f1, 2022.3.13f1
Reproduced on: macOS 13.6.3 (Intel)
Not reproducible on: No other environment tested