While failure is important for success, take only as much failures as you can afford to, without losing all your happiness. Failing more than what you can withstand is a recipe for suffering.