Mechanism by which a frictionally confined rod loses stability under initial velocity and position perturbations