Placed Item Frames with Invisible NBT tag, lose their NBT when breaking it and picking it up back as an Item Frame.
To reproduce
- Run the command
/give @s minecraft:item_frame{EntityTag:{Invisible:1b}} 2
- Place one of the item frames
- Break the invisible item frame
→
The item doesn't stack