Sorry , just realised what I'd said there.
It's not going to help the random switching on while you are riding but would be OK when ignition is off.
Wiring heated grips isn't difficult and if everything is working OK when you actually want them on suggests the wiring is correct.
The only part that can switch them on randomly is the controller, it's possible R&G have sent you another faulty controller.