Hello, something similar happened to me, the problem was caused by the IAC valve had the accumulation of carbon and stuck which tried that the revolution sensor generates bad readings I recommend cleaning both clean spark plugs and changing fuel filter to if I solve my problem I hope I help you, greetings