The motor for you bike is a Dapu MD500 actually as seen on the Pedego site relating to the bike you describe you have?
If you are confident that the motor is where the problem is and can remove it yourself I would say to ship it to a reputable repair facility. Any idea of a warranty claim on a...