I'm sorry to learn that you are having so much trouble getting your career back on track. The only thing more stressful than looking for a new job is looking for a new job when you are unemployed. If I can reassure you with anything, I do firmly believe that with perseverance, you can change this situation.
It is not clear from your message what steps you have been taking to get yourself back on track. Now that you have been out of the job market for some time, you have some explaining to do before you even get to the question of whether you are a good fit for a particular employer. You have the stigma of being unemployed and although this may have absolutely nothing to do with your skills or your effort, potential employers will be more wary about hiring you. The good news is that there are several ways to work around this stigma.