Don't know if this will help but I had a similar problem with my '01 coupe. It would go through all gears but randomly drop / slip out of 4th or stick in 2nd adn 3rd. I had to shift gears myself.
It kept coming up as a solenoid A / B problem but after replacing them the problem still persisted.
My solution? Swap the automatic tranny for a 5spd and apart from certain gauges not registering it's been smooth bump and stutter free driving.