This is not a tranny issue. It is an idle control issue. Your idle should not need to be held back by the tranny in order to stay below 1000. It should idle at the same speed in or out of gear.
Sounds like poor connections in the idle speed controller.
Bosch Master, ASE Master, L1
33 years MB technician