Not gonna tell you to not feel bad because you are going to anyway sooner or later.
But think of this way: this bad moment you are in right now would not matter at all 1 year from now, by around that time or very likely even sooner you could go months without thinking about this loss and that is just to tell you how much this one bad thing that happened to you or the mistake you made does not matter or won't change your life in a very meaningful day
Also if you managed to make that amount of money, no matter how big of amount you think it is, it means you definitely can make that amount of money again.
Give it some days and weeks and I'm hoping you're in a better shape mentally by then, wishing you the absolute best.