I don't
really know what to tell you, except to offer some encouragement. I'm only a few years older than you, and while my experience was different I have also been through some bad times. Even now, I'm in a very rough spot financially, but I'm on my way out. Everybody goes through their own personal hell sometimes, and in my case I found that the most important keys to getting out of it are determination (which it sounds like you have), an independent and resourceful spirit (which it sounds like you have) and the ability to ask for help (which you just did). Note the last two: never be too proud to ask for help, but never count on getting it, either.
Without knowing where you are now, I can't comment on your decision about moving to some other country, but fortunately you have valuable skills which will help you find work anywhere. Definitely consider the cost of living in any country you want to move to compared to the amount of money you can make working remotely - it sounds like you're in an area with comparatively low wages, and by that standard I assume the cost of living in your country is less expensive than, for example, the US.