A bicycle can be designed so it won't fail, or at least will be extremely unlikely to fail. It is relatively straightforward to calculate the stresses on the various parts, and then design a part such that the stresses are far below failure mode. Problem is, your design won't be very popular. Or light.