Raise ValueError if maximum field length is exceeded.