Throw an exception on unsupported grayscale band type