InvalidDataError with better error-msg. Size limited. Allows running travis-ci