How to reproduce:
1. Open the attached project "My project.zip"
2. Enter Play Mode
3. Open Edit>Project Settings...>Input Manager
4. Right-mouse click on "Enable Debug Button 1"
5. Click "Delete Array Element"
Expected results: No errors thrown in the Console window
Actual results: "ArgumentException: Input Button Enable Debug Button 1 is not set" is thrown
Reproducible with: 2021.3.26f1, 2022.3.0f1, 2023.1.0b19, 2023.2.0a17
Reproducible on: Windows 10