All interviews end in failure except the final one, when you are reemployed. It is important to learn not to take rejection personally. If you do not fit in the company, you would not want to work there anyway. It is easy to let repeated rejection make you feel inadequate. You feel there must be something wrong with you, or you would not be rejected so often.
Rejection is the norm.
Feelings of inadequacy are a danger signal that requires immediate attention. If you allow those feelings to build, you will hamper the effectiveness of your job search. You need an immediate infusion of self-confidence. Keep telling yourself that you will get a new job as good or better than the one you had before because that is the way it works out. When you feel inadequate, realize where those feelings are coming from, and you will overcome them.