The value of failure has become a mantra in Silicon Valley, with the rise of events like FailCon, a conference “for startup founders to study their own and others’ failures and prepare for success.” Failure, the thinking goes, is an intense form of hands-on education that — when done right — enables you to learn quickly and grow.