How to reproduce:
1. Create a new project
2. Create a new MonoBehavior Script in the Assets folder
3. In the Inspector window, lock the created MonoBehavior Script
4. In the Console window, uncheck the “Clear on Recompile“ option
5. In the Project window, delete the “NewMonoBehaviourScript“
6. Observe the Console window
Actual result: “Failed to read from file” error appears in the Console window
Expected result: Console window does not show any new errors
Reproducible with: 2023.1.0a1, 6000.0.66f1, 6000.3.5f1, 6000.4.0b5, 6000.5.0a5
Reproducible on: Windows 11
Not reproducible on: No other environments tested