Suggest to diagnose at workshop, usually the keypoints of diagnose are:
1.Dismantle the gas pedal assembly, locate the corresponding wire from the sensor, use an ompedance multimeter to check the circuit if it is faulty.
2. Check the gas pedal sensor wiring if it is open circuit or poor contact, replace the wiring if faulty.