My reverse lights used to do the same thing. There is a reverse light switch on the passenger side of the transmission. All I did was better secure the wires on it by getting some needle nose pliars and crimping the end wire connectors. They work every time now. I don't know if that's your problem but it couldn't hurt checking it out.
-1985 325e - 5000 RPM's of Fury