If you run into unexpected errors you may need to repair Microsoft Flight Simulator. Follow the steps below for instructions on this.
1. In the search box on the taskbar, type Microsoft Flight Simulator
2. Click on App Settings.
3. On the page that opens, select Repair if it's available. If it isn't available or doesn't fix the problem, select Reset.