i had kinda similar things before and it turned out to be dizzy problems.

the car would driving fine until i gave it a good revving then the power would die down and sometimes stall