For unusual or excessive motor noise, check that the motor is properly mounted with no misalignment or loose screws, and that the motor-to-controller cables are fully inserted with the arrow markings aligned and no fraying or bent pins. Also check the brake pump for foreign objects or oil leaks, and the rim, motor and spokes for anything stuck or broken.
If the noise continues, push the e-bike by hand with the display off. A click from the motor, or when you use the throttle, means the gears inside the motor are worn and the motor needs replacing.