Thanks for writing to us.
I can imagine what you must be going through, I know it is very frustrating to deal with uncertainties and you must be feeling insecure at this time of your life. It is very disheartening to struggle for a secured job even after 12 years of work experience, however, do not think you are alone. There are many who suffer from today's IT BT uncertainties. There are many who lose a job even after 10 -15 years of work. I know all this would not make your pain any less, but at least it gives some strength to overcome the situation thinking that we are not alone and there are many like us who are going through the same and still managing to lead life.
You have mentioned that you are not able to retain any job more than 1-2 years, even this could be one of the reasons for not able to find a job. When you have 12 years of work experience and not more than 2 years in a company, then you must have worked in more than 6 firms to date. think back and introspect what are the reasons that you left those firms. Think what is making you lose interest so often.
If you are finding very hard to cope up with the current situation and it is affecting your other aspects of life then talk to an expert and seek help.