
Did you finish grad school? What was your thesis?
Remember that LLMs are designed by people with mathematics masters. So you’ve definitely got skills that could be desirable to employers. You also appear to be conflating difficulty navigating life with being stupid. More likely you have a specific vision for how you think you’re expected to live, and life isn’t working out that way. You’re describing classic (even stereotypical) autism spectrum issues. The good news is that these days there is a LOT of research into how to integrate people with intense focus but no people skills into society. You’re not only not alone, but there’s tons of resources out there to help — the trick is figuring out which you need and what’s available in your own area.
TL;DR: the issue is most likely not your capabilities but your expectations; if you can afford to, try lots of things and don’t worry so much about failure. Everyone fails; it’s how we learn. Just don’t keep trying to succeed at a path that brings failure and misery; try new things until some click.
Then again, I spent 10 years in the trenches being underpaid after graduation before I had enough experience to get a job doing the stuff I loved and was good at. And I spent a year between learning all the ways not to apply for a job. That’s part of growth, not a dead end dumb activity.

Careful here though; people often react negatively to being told how to do something they’ve already been tasked with doing, because it looks a lot like micro managing or taking over.
Two things that help are: asking for help yourself, and making the suggestion for how they should do Y in the context of how you should do X, asking them if they think that approach would be a good idea.
Then you come across as approachable, demonstrate collaboration by example, and get to sneak in the right way to do things so it’s on their mind while they’re trying to find their own solution.