Due to the little information, it is due to a defective circuit,
either of the wiring, butterfly position switch/of the accelerator pedal, engine control module
I do not know if this will help you much,
if you had an option to a diagnostic machine, or with a little morning with the laptop, but of course you would not have asked,
hahaha