Giving invalid blockstate items by /give only creates error for Anvil
Since the fix of MC-82677, when doing
/give @p minecraft:anvil 1 3
it will now give an error message
Invalid damage property. Please pick in [0, 1, 2]
However, this only works with anvils.