feat(core): Use maxValueLength on error messages
#18301
+41
−4
Merged