Either one is OK, but there are some picky grammarians who insist that an infinitive must not ever be split. To be on the safe side, use this one: T he most important lesson I've learned is has been not to be afraid of failure.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.