Check max key range size and max version length to not exceed max
allowed sizes (1024 and 2048).

A client request would fail (with error code set to INVALID_REQUEST) if
an operation can not pass the validation.