Consider unsuccessful investments as poor decisions and learn from them. Change your behavior, not your knowledge: adjust your future investment decisions according to your area of expertise.
Stay true to yourself.
Be aware of this process, as it is largely unconscious. Start with self-analysis.