Reproduction steps:
1. Open the attached “Test Project” project
2. Create a new “Create/this will fail” by pressing right-click in the Project window
3. Open the “NewBehaviourScript” Script in the Project window
4. Change the “menuName” value to “this will fail “ (with space char at the end)
5. Repeat step 2
Expected result: New ScriptableObject asset is created
Actual result: New ScriptableObject asset is not getting created
Reproducible with: 2020.3.48f1, 2021.3.25f1, 2022.2.19f1, 2023.1.0b16, 2023.2.0a14
Reproducible on: Ubuntu 22.04.2
Not reproducible on: Windows 10