Reproduction steps:
1. Open the attached project “NCHelloWorld2”
2. Build the project
3. Build and Run the project again and replace the existing one
Expected results: The project is built
Actual result: The application quits unexpectedly
Reproducible with: 2021.3.15f1, 2022.1.24f1, 2022.2.0a10
Not reproducible with: 2020.3.42f1, 2022.2.0a11, 2022.2.1f1, 2023.1.0a22
Reproducible on: macOS Monterey 12.5.1 (M1) (by the reporter), macOS Monterey 12.6 (M1)
Not reproducible on: macOS Catalina 10.15.7 (Intel), macOS Monterey 12.6.1 (M1), Ventura 13.0 Beta (M1)