include an error message for invalid year in trial manager and nursery manager

Issue: GCP-9659

Reviewer: Chezka Camille Arevalo