Help needed with expression pedal input circuit

Sounds like things are shorting out as you slide in the jack. The simplest way of stopping a short is to wire a 100R resistor in seriese with the 3V3 line. This might cut down slightly on the range you can get but you can easy compensate for that using a map statement.