I have a Shred model but would like to share some info about an issue that may concern your bike. The sound could be a faulty freewheel assembly. Photo attached.
The part is housed/mounted in the hub motor case. The clicking sound is easy to hear because the Bafang motor on my Shred model...