Could this be loose wiring, internally?
Sunds like that. If your pedal is still in warrenty, you may send it in for repair. Otherwise you may have to pay for the repair, or get one of this: https://store.eventideaudio.com/collections/accessories/products/replacement-footswitch-space-and-factor-series and repair it by yourself or a guitar/pedal technician.
Email firstname.lastname@example.org to get more info on this.