I had the similar problem before, starter motor worked great but hard to start the car, idle speed not stable, no code, engine died at stop sign. Turned out to be bad ECU connection, to be specific, ground wires on the engine, they worked as negative ECU terminals. Cleaned them and no problem anymore