Fiido D2s Electric Bike Rear Hub Motor - Dismantle and Repair

How to dismantle and repair the wiring to the rear hub motor of a Fiido D2s electric assist bike. I damaged the Hall sensor wiring at the hub motor and this was showing as a fault on the bike's display (constant flashing LEDs). My Fiido D2s has now covered about 3000 km in one and a half years ownership.