Sorry to hear that, it sounds like a tough situation.
My suggestion would be to speak with a professional career coach or mentor (I am a career mentor and coach myself). It sounds like you have a good background, but something is going wrong in the hiring process.
The hiring process today is complex, and many job applicants will get auto-rejected for simple reasons. When you work with a coach, they can show you which red flags are in your profile or CV/resume, and you will be able to fix them together.
My suggestion would be to speak with a professional career coach or mentor (I am a career mentor and coach myself). It sounds like you have a good background, but something is going wrong in the hiring process.
The hiring process today is complex, and many job applicants will get auto-rejected for simple reasons. When you work with a coach, they can show you which red flags are in your profile or CV/resume, and you will be able to fix them together.