Vindicators will spam equip then unequip their iron axe when they can't reach their target (player, villager, etc).
MC-199286 Vindicator AI issues
MC-265174 Skeletons quickly swap between aggression and non-aggression when being deterred by wolves
MC-87093 Skeleton, wither skeleton, stray and bogged arm animation glitch if they can't reach you