hi does the code reader you used have a live data function so that you could see if lambda switching air flow switching etc high revs is a sign of intake leak but if it isnt doing it constantly then it shouldnt be it sounds more like idle speed controller to me as its rvving up n downsee if it has live data and then check the isc position sensor and see if it moves with the revs tht should eliminate that