Steps to reproduce:
1. Create a new project or open an existing one
2. Select a GameObject in Hierarchy or create a new one
3. Click "Add Component" in Inspector
4. Click "New Script"
5. Click below the "Create and Add” button
6. Observe the results
Expected results: Nothing happens
Actual results: Component creation window closes and an error "ExecuteMenuItem failed because there is no menu named" is thrown
Reproducible with: 2021.3.35f1, 2022.3.20f1, 2023.2.10f1, 2023.3.0b7
Reproducible on: Windows 11 Pro, Windows 10 (Reported by user), macOS 13.6.4 (Reported by user), Ubuntu 22.04 (Reported by user)
Not reproducible on: No other environments tested
NOTE: this bug happens because we are tyring to create a script named "new" (see video) and the class name will also be called "new" which is an error in C#.