I think this a problem I had a while ago.
a new controller has permanently fixed it I hope??but I cured it myself at the time with a hairdryer on the motor. Worth a try
My hub broke on a ride. Took it to lbs. they changed the hub under warranty. Did 12 miles on new hub when it broke too. I’m talking to giant tomorrow. Apparently hope or dt Swiss do better hubs