Raised if the mask given to a binary operation is invalid, e.g. zero length or overlaps the target buffer.