Hello toyota nation from goood ol michigan.

This is my second post. i just wanted to see if anyone could give me a helping hand.
1991 camry dx. 4 cyl. got the car for free from my girlfriend (had been ran on 3 cylinders for a long long time, idk how but it was) car wasnt up on maintenince but ran.
I replaced. distributor cap and rotor and wires and plugs (napas premium line ) ignition coil, a couple motor mounts and trans mount. and a couple vacumm hoses.o2 sensor and i have a cold air intake and hi flow exhaust.
Car has ran pretty well. idles fine. drives excelent. someone harsh first gear engagement (swapped trans fluid with new and some lucas trans stabalizer. so im guessing that might be the harshness)
For a while its occasionally stuttered and very briefly died out and then reved high and took off upon acceleration.
I have ran alot of fuel injector cleaner multiple times. all brands.
even had them cleaned by the shop (on car)
i replaced the distributor o ring ( seen a tiny bit of oil inside distributor)
and the valve cover gasket and it got better. but still stumbles occasionally.
trying to make this short. but the other night (cold -5 to 10 degrees)
went to go to work. car started fine like usuall but idled very very irratically. surging up and down (no tach) almost stalling but stil running.
thats when i replaced the cap and plugs again,distributor o ring and valve gasket. Thought it was fixed but started "surging" for a second today when i accelerated from a stop sign.
i dont want to get stranded!
any help would be very greatly appriciated. i love my camry and dont wanna have to get rid of it. it has 167 k on it.