I think this calls for a self-diagnostic. I would definitely see a therapist and maybe a doctor to make sure there aren't any subtle undiagnosed issues holding you back. This could be mild depression, ADHD, or heck sleep apnea. Or maybe you're completely in the wrong field for yourself and a counselor could help to quickly suss that out. Or maybe you're a wild perfectionist and don't even know it. There's a million possible explanations that could be completely invisible to you but accessible to a trained 3rd party.
If you were in your early 20s I'd say... muddle through, no one starts off awesome. But by your 30s I think it's reasonable to expect more and appropriate to get proactive about getting to the bottom of this.