Losses hurt, and blow up on single trade should hurt even more.
It seems that you were sizing up on a trade, the outcome of which you are unable to accept. You learn this the hard way, never ever risk more than your daily, weekly or similar limits. It keeps you in the game.
As long as you have the capital, you have the chance. But if you punt it on a single outcome, there is going to be a trade that will take it all & you don't recover from it.
Also, I want to ask, was there a mechanical signal? Or was it discretion?
Confidence comes from data over time, not from being right. You weren't "wrong" today, you just had one outcome in a distribution of thousands.
Trade the process. The results always follow.
Start with 20 trades rules, and only have the capital that you are okay with losing in those 20 days. So, even if you lose that in the next 20 trades, you don't feel bad.