If the pedal itself is just flopping around, that would cause it to bounce around and hit the switch. Are you sure that the end of the brake rod were it goes up under that welded triangular bit on the frame is actually securely connected to the end of the pedal? I would think that is where the problem would most likely be..possibly something is working loose - like that pin that goes through the yoke on the brake rod, etc.