Sounds like someone has tried to “tune” the engine too many times by “cleaning” the maf and AFR sensors etc.
Or it has a failing battery or alternator.. (does it start to misfire at near to redline rpm?) Does the engine pull with all its torque in midrange?