You aren’t the first to romanticize failure. Keats was way ahead of you:

Failure is, in a sense, the highway to success, inasmuch as every discovery of what is false leads us to seek earnestly after what is true, and every fresh experience points out some form of error which we shall afterward carefully avoid. – John Keats

There is but one cure for ignorance: enlightenment! Lesser treatments, such as ‘selling the masses,’ political activism, and the like, are an utter waste of time; as well try to bring daylight by cursing the darkness!” (To Free or Freeze, p. 18)