Catch exception for InvalidValueException to display errors where a value exceeds the maximum length allowed

Issue: GCP-7659

Reviewer: Darla