I've had that happen to me before.
Nothing more frustrating! I learned to write it on my notepad & save it & then copy/paste & if the hateful beast eats it you can copy/paste again. Or you can write it in your email program & copy/paste.
Glad you're okay.
XXXOOO