Hello friend, it offers more details of the fault and surely someone can give you a successful answer. A friend had a similar fault but the car did not give more than 3000 rpm and drowned, it only remained below that value, they took him to the scanner and did not throw error ... but !!! If there was an error, the ECU, engine switchboard or computer, as they call it according to the location, it was bad, since it realized when tested with a borrow. He bought a new and voila.
It may not be your case, since there may be many basic factors associated with this fault such as: dirty injectors, problems with spark plug cables, dirty fuel filter (it happened to me once)

etc.
Greetings, hopefully you can solve soon!