My e light comes on driving down road on 1991 BMW 735i

When this happens I have to pull over because the car will slow down and I have to turn off key and then turn back on and then will drive ok. It is almost like something has to reset in the transmission

Asked by for the 1991 BMW 735i