Return a decoding error for negative array lengths