I had same problem a month ago.
I phoned to local dealer, we tested some things but then I take the bike and go to the dealer. It takes 20 minutes and they localized the problem to cable between battery and motor. After changing that it works again. Warranty takes every costs.
Just one case, but still.
Haibike Sduro AllMtn 7.0 2017, 2250 km.
Broken in road ride, not in jumps etc.
Factory wanted to get bike back. Because they havent anymore frames for this model they refund the payment.