I dont know how to fix it in core but you can use Froala to upload gifs.
Hey Roman,
Thank you for the information. I just Googled Froala and found the site and information. Thank you so much.
Sincerely,
Ron