I tried to make a sketch.
There are some assumptions made, on the design and construction of the engine .
5V are now place in common, due to the connection you made for both potentiometers of the gas pedal.
If (assumption made), there is a common 0V inside , and that connection fails, both signal wires will go to 5V, because there is nothing to pull these signals down towards 0V anymore. will see this as full pedal. Unless software will reject 5V as valid value being above a threshold, but again, an assumption.
These systems are normally designed with multiple failure redundancy in mind, no maker wants trouble and publicity that cars went full speed uncontrolled. What you have made is to remove one protection layer already. You would think, it cannot happen to me. Boeing had the same with the 737 .... look how many deaths. Same problem there also.
Another option is that these signals are mirrored, so if sees 5V both, reject ... that could do as well, but who knows....
Long story short, why for the love of God, risk this?