From: https://community.aseprite.org/t/layers-become-empty-when-autosaving/22141/3?u=dacap
It turns out that there is a 16-bit integer limit: 32,767. I just found out that the wand tool and fill bucket tools don’t work past the rightest part of the image or bottommost part of the image past 32,767 pixels in width or height. When I draw a line separating this pixel mark, anything to the left/top of the line works flawlessly, and anything to the right/bottom of the line crashes the program (and deletes the cache for the current program’s pinned and recent opened items!).