You'll often hear "don't gamble more than you're willing to lose". Same applies to investments. Or borrowing money to people. If you lost more than you can afford, then you'll feel even worse than if you lost a smaller sum. I think you got a valuable lesson in life. Now embrace it and learn something from it.