I would say that we must learn from such losses. Each unsuccessful transaction must be analyzed and the reason for such failure must be found. This way we can adjust and improve our trading strategy so that there are fewer such losses in the future.
Definitely, I'd even suggest to share your experience with other traders to see some comments from professional traders and you can also help your fellow traders from that community to learn from your mistake.