What's an "unclosed group"? And how would I go about finding that out without reading some sort of manual?
It worsens the UX for no reason.
As a sibling comment said, the program already knows why the name was invalid. It would have cost nothing to surface the reason when reporting the error.