Theoretical analysis of injection-driven bubble pinch-off in capillary flows