As to your first question, generally the thread engagement length and component materials are designed such as to result in a tensile stress failure at the root diameter of the inner thread in the event of torque overloading.
As to your second question, I am unclear as to which component in the drawing is the "shaft". Is it the brown colored tubular component?