Could be a misdiagnosis. The KNOWN problem with this entire series of Aerotrain is poor traction due to limitations of a single drive axle with limited weight on the rear truck, tiny secondary guide wheels, and the OTHER known problem the cars are high drag due to the fixed non pivoting axles.
You tie all that into combination, try to run it at low speed under DCS where the front truck has much better traction and weight, but the rear truck has the tachometer, and then you wonder why it derailed in an S curve?
Again minimally, a known thing was to add weight to the engine chassis because of this limitation of the rear truck coupled with the tach sensor and wheel slipping interaction. The weight removes the wheel slip, and since both motors see the same voltage but that voltage is based on what the tach is sensing the rear motor is doing- is now much more likely to match VS be completely mismatched.
I'm not saying you cannot have a binding rear motor truck and or wiring issue, I'm just saying, the symptoms and lack of detail of you making any of the recommended basic mods- more of the problem IMO.
Again, the KNOWN thing that happens- especially at low speed. The rear truck and motor since it is tachometer sensing and control determines the voltage of the front motor too. So you give it slow throttle, the rear wheels slip, but they do not spin uncontrolled- no, they spin controlled to a fixed commanded RPM. The amount of traction (or lack of) determines voltage feeding that motor to achieve that RPM. If unloaded or lightly loaded= very low voltage. Meanwhile the front truck gets the exact same voltage but has better traction. This means that motor does not slip, but may not yet have enough voltage to pull the train. You then have to give more throttle to "get over the hump" where again the back wheels are spinning, but more throttle does raise the overall voltage and now maybe, just maybe the front truck with full traction and not slipping begins to pull the train. At some point- OK now we are moving, but again is the single axle rear truck sitting there slipping the entire time compared to the actual movement of the train?
Now compound this into an S curve. The cars are dragging more, the traction in the engine likely is still slipping that back axle VS the front truck. Again, not surprising without additional weight it wants to climb the rail.