The E unit is working as intended. Your problem is typical loss of power when crossing over a switch or special track like a control track.
Turn the E-unit to locked in forward or fix your pickup rollers VS track problem.
Again, you most likely have a situation that only one pickup roller is working. When the one that is working rolls into the red plastic area- the engine would lose power if the other pickup roller on the metal rail is not providing power.
Cleaning the pickup roller shafting https://www.youtube.com/watch?v=hm9ubDWUkF8
Track cleaning and pickup roller cleaning discussions https://ogrforum.ogaugerr.com/...5#162334965802343745
Again, bottom line, you most likely have a pickup roller not working well and that combined with that track results in a power drop.
The E unit is working as intended and the power loss and returns are seen as commands to change direction.