You're trying to save image with geoscape palette, including groups 0 and 8, which are obviously disallowed.
You should limit color usage by color groups 1,2,3,4,9,10,14.

.
Why? because shading is done within color group (+ special shading for the ocean double sized group).
And you 're using colors which are out of shaded colorgroup concept.