Introduce max length validation for Milestone title

What does this MR do?

Introduce max length validation for Milestone title

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

API requests to create a milestone with a massive title would fail with an unhandled exception

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #31838 (moved)