The name nbt tag doesn't produce an error when it is changed to a not formatted string. And the name will not be shown.
- Throw the item on the ground
→ You will see the tag is set but not displayed
The game should show an error, much like book pages do when invalid JSON is used as a value (producing the message "invalid book tag").