Check the ground wires, as you probably suspect. Since you can make this happen with moving the wiring harness around,
you may be losing an electrical contact (possibly ground) with an intermittent open circuit going from under the tank up to the handlebar/
ignition switch, or you might have an intermittent short occurring which is shorting out a 12V line.
We had a problem a bit earlier with another member with a slightly older model R65. The coil mounting bracket had cracked and
the ground wire, which had been connected to the frame ground through the bracket, became intermittent. Your bike is
a newer model and has a bit different wiring scheme, but it is a possibility.
Best of luck, and if you can give us any additional info, we'll try to help narrow things down. You indicated that you replaced
the coil, can you tell us if you put in the BWM std coil, a used coil, a dyna brown coil, or ? Did you replace a bracket or notice
any unconnected wires afterwards ?
