Ok, well, there's a few possibilities that would cause it to shutdown and restart.
If your controller can't handle the current pulled by the motor, if it has a protection against that beyond the usual current-limiting PWM (which would cut back power on the motor just enough to not exceed the limit, normally), it might be shutting down and restarting.
What causes that could be in the motor, where perhaps a winding is shorted just a little to something, either itself across several loops, or the stator laminations, etc, and it only happens to really short under a mechanical load for whatever reason.
Or it could be int eh controller, where a FET or FETs (or gate driver(s)) are failed, or are not screwed down to the heatsink properly and are overheating, or a capacitor is bad and allowing a lot of noise thru (which would happen more at higher currents, probably) and causing a cotnroller reset, etc.
Another possibility is yoru battery is cutting out under hte load--this happens way more often than controller failures or motor failures. It oculd be because a cell(s) is not fully charged (or damaged), and the pack's BMS is cutting power when the high current of startup/etc causes the voltage on the cell to drop below the LVC.
Could be a poor connection inside the pack causing the same kind of end result.
If the BMS is not acutally cutting power, but a cell or cells still have problems, it could cause enough of a voltage drop to make the *controller's* LVC engage, and cause it to turn off, then back on as soon as voltage rises again.
You'd have to measure the pack voltage while riding (or putting the motor under load while stationary, etc) to see if that's what's happening. If it is the pack cutting out, you'd probably see *all* power on the bike go away momentarily, so a meter measuring at the packs' output connector to the bike would probably show 0V or very very low V for the time of the cutout. If it is the controller cutting out, you'd just see a dip (maybe large) in the pack's voltage, but not down to nothing.