Fix error message on invalid field names for a struct variant

Fixes #19922.
Oh... it's true. I'll add it soon.