Glad you got yours fixed.
I had the same problem just before my warranty ran out !
Yamaha replaced the loom and reg/rectifier and now all is well again.
I had taken all precautions listed silicone grease and inner tube but it just wasn't enough to prevent the fault.
I am loving my bike again now and I think you will too with every KM you ride with no problems.
have fun Ride On