File Corruption on export gif

I worked on pretty huge project: nearly 300px * 400px and 1000+ frames, 30+ layers.
It had 600MB for .aseprite file.
I just forgot to flatten layers and tried to export that as gif with 200% sized one.
pretty long time passed, then Aseprite said “There’s not enough memory” kind of thing.

Then file corrupted.
some layers with big size (such as background) lost its some of colors and partially sliced out.
I know it’s my fault that missed saving before export.
but whenever I try to fix it, aseprite gets 20GB of my memory and freeze.