Learn enough from the loss that repeating it would require deliberate ignorance.
CREATIVITY
CREATIVITY
There is a level of understanding at which repeating a mistake would require actively looking away. Getting there means going past the summary of what happened into the mechanism, so the warning signs become recognizable rather than obvious only in hindsight. Below that level, good intentions do not prevent recurrence.
Ask what the earliest visible sign of this problem was, before it became clear. Learn that sign specifically. Recognition at the beginning is worth more than any amount of resolve at the end.
What would you have to ignore on purpose to repeat that loss?
Free, with nothing to buy inside it.