Reject url_keys of invalid size instead of crashing