Better error message for bad elem_size field.