Separate the light and the other device. Separating my light and computer by a couple of inches solved that problem. Some lights don't cause this problem, or may cause fewer problems with other devices.
Moving a light from my handlebar to head tube solved that problem on one road bike.