People say there is no way to avoid failure. They are wrong. There is a way to make sure that you absolutely never ever fail. And it is guaranteed to work. So listen carefully if you want to lead a life devoid of failure.
The way to never fail is this: NEVER TRY.
The only people who never fail are people who never try to do something they might fail at. Those who do not try, never fail. They live a life free from failure.
And here is something else that is interesting. A life without failure is also a life without success.