Fix error message on invalid field names for a struct variant

Fixes #19922.
It seems that the case is already provided by the existing test cases(struct-fields-too-many.rs and issue-4736.rs), so I think it would not be necessary to add another one.