Good to hear you have it sorted, wiring round sprocket covers getting pinched is a problem other models like the 650 single suffer as well
Take the time to write up a complaint to BMW, make it explanatory & how much time & money it has cost you for a fault which was either caused during production or by maintenance, presumably at a Dealer, on a bike that young in years it should have been resolved free of charge