Another common source of such creaks on crank units is the bolts holding it into the frame.
The frames are painted and then the motor unit mounted. With pedal force the paint on the frame compresses, leaving the motor unit able to very slightly shift in the mountings on each pedal stroke. The cure is to tighten the mounting bolts further.
The Panasonic units often suffered this creaking source.
.