Yes, I perfectly understand the situation... Losing work is never a nice experience, and it gets some time just to focus again on what you just typed.
Thanks for telling us it only happens on certain connections. I tried to remix your project and play with it with various network conditions, but without any "luck": I couldn't reproduce your experience. We are actively working on making the experience more stable on a wider variety of connections, starting from immediately telling the user when the connection goes away.
At this point, I'd say that it's a connectivity issue. But just to clear any other possibility, I suggest you to remix your project too and see if you experience the same bugs on the remix. If the problems go away, then perhaps the virtual drive that your project use has some hidden failure (which I deem very unlikely, but...).
Keep us posted thank you!