Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Make sure that the Game window resolution is set to 1920x1080
4. Enter the Play Mode
5. Click the Resume button in the Game view
6. Wait until the cursor stops moving in the Game view
7. Observe the Console window
Expected result: No errors are thrown
Actual result: “ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.” error is thrown
Reproducible with: 2023.2.0b3, 6000.0.44f1, 6000.1.0b14, 6000.2.0a1
Not reproducible with: 2022.3.60f1, 2023.2.0b2
Fixed in: 6000.2.0a2
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note: Not reproducible when the display resolution is set to 2048x1536, 2560x1600, 2560x1920, 2560x2048 or 3840x2160