As nouns,
ungrammaticality is a hyponym of
erroneousness; that is, ungrammaticality is a
word with a more specific, narrower meaning than
erroneousness:
erroneousness: inadvertent incorrectness
ungrammaticality: The state or quality of not following rules of grammar.
Other hyponyms of erroneousness include
deviation.