One further thought. Does a car of this vintage have an emissions control feature controlled by the brake pedal?
I vaguely remember a 2012 4/4 (Heinz ?) with an issue similar to this one. IIRC, it transpired that a faulty limit switch was confusing the ECU.