First of all, accept the loss. Now, you can’t go to the past and reverse the situation; hence be grateful to God that at least he saved a significant portion of your capital that could’ve been lost.
The next step is to Identify the cause of the loss. It is essential to know whether it was a technical problem or you lost because of your poor mindset.
Write down all the probable causes and meditate on them. Forgive yourself for committing mistakes, and promise yourself never to repeat those mistakes.
Your article helped me a lot, Thanks!