Editor: improve the error message of a sprite with frames out of bounds.