Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene” Scene
3. In the Build Profiles (File > Build Profile), make sure iOS or Android platform is selected
4. In the Hierarchy window, open the context menu of the “PointLight x8 (without shadow) (2)” GameObject
5. In the Context menu, select Duplicate
6. Observe the Console
Expected result: The logged error clearly shows that it occurred due to exceeding the maximum number of lights set in the universal-config package
Actual result: Multiple “IndexOutOfRangeException: Index was outside the bounds of the array.” errors are logged
Reproducible with: 6000.0.45f1, 6000.1.0b13, 6000.2.0a8
Couldn't test with: 2022.3.60f1 (No errors are thrown)
Reproducible on: macOS Sequoia 15.3.2 (M1 Max)
Not reproducible on: No other envornments tested