I was fired from the last position because I think
It doesn't really matter why you think you were fired, it matters why you were actually fired. Why was that? Were you told? How was your termination communicated to you?
I have no other career opportunity
This seems unlikely.
Should I quit software development ? am I that bad ?
This is not a question we can answer for you. If it doesn't make you happy, maybe stop doing it. If it does make you happy, keep trying.