The general mechanism is that recognition of the antigen by memory B cells produces a response that also inhibits (non-memory) B cells from reacting to the antigen. So when the antigen has drifted enough that memory B cells still recognize it, but the antibodies are less effective then at that point B cells are actively inhibited by the memory B cells so new and retargeted antibodies are not produced.