A few things you can try:
1. Enable auto-backup in the Construct settings — this is a must when working on large projects!
2. I'm using this extension in Chrome to prevent accidentally closing or refreshing the Construct tab. There might be a similar add-on for Edge, or you could consider switching to Chrome.
3. The next time the app refreshes, immediately press F12 and check the console log for any messages.