My 9.8 XT has a serious crack / tick when pedalling, especially standing up and really cranking in it.
Checked crank tightness - Nope
Checked lock ring / chainring torque - Nope
Checked all bearings on the bike (cleaned and greased and torqued) - Nope
Dropped the motor and checked mounting...