Hi Idabella,
Thank you for reporting this concern here in the Microsoft Community Forum.
We understand that the Office desktop app crashes and exits when you are trying to open an Office file from a browser. This may be an application-related concern. Let me help you in the best way I can.
First off, could you please verify if the issue is still happening if you will download the file instead of clicking Open in Desktop App from a browser, or is there any difference when you do so?
Lastly, could you also please verify if you are using an Office for Business or Office Personal/Home?
Once we got any answers, we’ll then provide you appropriate recommendations to solve this matter. We look forward to your response.