Wow that is a really strange issue! I don't suppose you know if your car has "electronic throttle control"? I doubt it but thought it would be worth asking.

Also when you say the car isn't accelerating, is it still revving up but not moving much? 'cause auto transmissions can slip really badly when they get issues.