I just want to clarify a couple things.
Were you sitting at a stop, foot on the brake, you made no change in your foot position and suddenly the engine revved? I assume you have an Automatic.
Did the car then overpower your current pressure you were applying to the brakes?
Did the revs surprise you and you let off all pedals when it happened?
Does the engine idle inconsistently or somewhat lower than you remember it used to?
Has any car mechanic (Infiniti or a trusted 3rd party) looked at it?
I do believe you that a car's engine can suddenly rev while stopped. It has never happened to me in my G35, but I had another car that did this. It was a mechanical issue. Fuel pump, fuel pump sensor or something like that (was a while ago don't exactly recall). And it didn't throw any codes for the shop to read. Either way, the shop fixed it, and it worked fine after. Before I got it fixed, I made sure to apply maximum pressure on the brake pedal whenever I was near something I could hit just in case it happened. I know that I personally got comfortable with applying just enough pedal pressure to keep the car from moving at idle so the first time this issue happened, it was very surprising.
We did have another thread about similar issues. You might have already read it and did not want to necro, but here's the link.
g37-unintended-acceleration-t320427.html
Good luck with your issue,
Lars