Firstly, have you installed the bottom bracket motor mounting plate, with the knurled side facing inwards? This will ensure the plate bites into the bottom bracket, to help prevent torque from twisting the motor.
Secondly, make sure you use the proper tool to tighten the inner nut and locking...