To reproduce, summon a mannequin with CustomNameVisible as false:
summon mannequin ^0 ^0 ^3 {CustomName: Fred, CustomNameVisible: false}
Make sure that your cursor is not pointing at the mannequin. Note that the custom name is visible. I would expect that the custom name would be suppressed unless my cursor is pointing at it, like it is with other entities. (I’m not talking about the “NPC” annotation, though I’d like a way to turn that off too, but I can imagine this is a design choice.)
AJT3VP88