It's usually possible to just press Reply again, and recover the full contents of your draft reply, but this is still pretty annoying.
It's also possible that if you were editing a code block, or you happened to type/paste a lot of content, you might lose some of your edits.