If the World Border is shrinking and passes by a painting it pops off the wall! This doesn’t happen to armor stands or boats so I don’t think this is intended.
Environment
Place down a Painting on a wall and an Armor Stand nearby then run "/worldborder set 10" (or whatever distance allows them to be outside the world border)
I wasn't able to reproduce this, even though I've seen other mentions of it online.