That said, it is possible to get a job. I struggle with ADHD and have had many short stints in my career (6 months to 1 year).
Your resume likely looks terrible (mine does). I drop the months of my resume to try to hide the short positions. I miss off really short jobs (2-3 months). Try to find ways to get work without needing a resume. Warm introductions from friends and former colleagues. Meeting other engineers at events. Giving talks at events and getting your name out there. Make a really impressive portfolio site (you can't change what you were doing 4 years ago on your resume, but you can add to your portfolio site today and give an appearance of longevity without lying).
Look into jobs where you can use your tech skills without them directly being "tech jobs". They might not have the same tech gatekeepers that are keeping you out at the moment.
Do you have someone you can trust to give you feedback on your work style and communication style? Getting fired again and again is obviously not ideal and you may have blind spots. If you can improve upon them you increase your chances of doing better in the next job.