They are a part that’s under a lot of stress, but they can last indefinitely. Hard cornering may be what causes the most wear, but there’s no special way to predict or prevent a sway bar failure. They make themselves known if they need to be replaced.