Reproduction steps:
1. Open the attached “ASDQWE” project
2. In the Hierarchy Window Select Camera GameObject
3. In the Inspector Window select Camera > Culling Mask drop-down field
4. Observe the Console Window
Expected result: No errors are thrown
Actual result: Multiple “IndexOutOfRangeException: Index was outside the bounds of the array” errors are thrown in the Console Window
Reproducible with: 2022.2.3f1, 2022.2.17f1, 2023.2.0a5, 2023.2.0a12
Not reproducible with: 2020.3.47f1, 2021.3.24f1, 2022.2.2f1, 2023.1.0a1, 2023.1.0b15, 2023.2.0a4
Reproducible on: Intel MacOS 13.3.1
Note: Hovering over the fields with a mouse throws the same error