It might be your Accelerator Pedal Position (APP or APS) sensor. If so, it will start getting progressively worse until your car will only go into limp mode which is a pain. In limp mode your car will accelerate very slow with a lot of surging and it will not be able to reach highway speeds.
They run $100-$200 on Amazon and can be replaced with a 10mm wrench/ratchet in about 10-20 min. It may require a slight adjustment to get the proper tension on a cable that is spring loaded inside of it. Someone with basic auto repair skills can do it. There are videos and DIYs online that help.