In any case, the important thing is to learn from your mistakes and not repeat them in the future.
Yes, and that is the best way to forget defeats If we forget them and turn them into a learning experience, that is the best thing we can do But that is what a very mature player does A mature player knows and takes advantage of opportunities, That is why each defeat is an opportunity to learn, but only for those who want to learn.
Though there's no assurance that you can stop repeating things to happen but as long as you know how to handle things, you'll be able to stop the moment you feel that you needed to call for the day, unlike with previous experienced instead of quitting you'll push your way and keep playing then lose more, with better understanding of the situation you'll be able to move forward and skip that aggression that you feel inside you, and not to allow emotions to dominate and not to commit more mistakes.