Shorten message of InvalidValue error at top level