I don't love the marketing "feel" of this source but it is a good and comprehensive guide on what failure means in a lifting context:
https://athleanx.com/articles/should-you-train-to-failureYou don't "train your body to fail". You may be training bad form - and form failure is failure.