Don't know if this will apply or not. But, if you have aftermarket pedals (gas and brake) attached, it could be possible that the pedals may be positioned a bit too close together. If this is the case, when you apply the brake for a stop, sometimes the edge of your shoe can catch the edge of the accelerator pedal and thus apply gas to the engine while trying to stop. The symptoms are very similar to what you've described.

Happened to me a couple of times and caught me off guard especially coming to a stop. I realized what was happening when I noticed how close my aftermarket pedals were to each other. And that the edge of my shoe would periodically catch the accelerator depending on the angle of my foot and location on the brake pedal.

However, if you don't have the aftermarket pedals, examine where you place your foot on the brake to see if it's anywhere catching the accelerator pedal. Remember, that it won't happen to all shoe types. Just certain ones with a slightly wider edge lip around the ball of your foot area of the shoe.

And if that's not the issue, disregard this message.