feat(core): Use maxValueLength on error messages
#18301
Merged
maxValueLength on error messages
#18301