It's a Canyon, why not contact Canyon direct? Is it still in the 2 year warranty period?
Surely that's the first step with any bike fault, inform the bike company?
Even if it's now out of warranty worth contacting them as they may do a goodwill repair/swap of battery or offer discounted...