First make sure other things are good. e.g low valve clearance, spark plugs, weak spark, dirty air filter etc.
Check fuel quality.
Check if fuel pressure is good and if fuel filter is good. When was the last time you replaced the fuel filter?
Then reset the ECU and relearn the idle. See if it fixes the problem.