How to reproduce:
1. Create a new project
2. In the Hierarchy, create an empty GameObject and name it “test“
3. In the Inspector, click “Add Component“
4. In the Component browser, type “Mesh“
5. Hit the “Up-arrow“ key on the keyboard
6. Type “fff“
7. Repeat step 5
8. Observe the Console
Actual result: An ArgumentOutOfRangeException error is present
Expected result: No errors are present
Reproducible with: 2023.1.0a1, 6000.0.74f1, 6000.3.14f1, 6000.4.5f1, 6000.5.0b6, 6000.6.0a4
Reproducible on: Windows 11
Not reproducible on: No other environments tested