Since I was like 12 I was blessed with the genetics of an 80 yo. Having muscle spasms, hernias, and all sorts of bizarre crap. The two times in my life I got into a workout regime things would get progressively better until months down the line, when I'd have to do surgery of some kind, likely because I 'worked out too much'. Doctors tell me to start lifting weights, but they don't seem to believe me and simply tell me I'm a male and young and shouldn't be as frail as I am. No tests in 20+ years have shown anything out of the ordinary, except for whatever problem I developed all of a sudden, so it's no wonder. I'm afraid that trainers in a gym wouldn't be any better. Got no idea where to start. Pool workouts with the elderly maybe?
Are you tall? Neurodivergent? Daibetic? Most non-specialist doctors have trouble diagnosing hympermobility and connective tissue disorders in well adults.
If not, it sounds like you just need to take it slower. The soviets had a great deal of literature on going slow to give your tendons and joints time to strengthen so you don't overwork yourself. After of our gym culture here doesn't focus on the growing part of growing stronger enough. So that might be a factor as well. Stress and lack of rest can inhibit growth and healing so there are a bunch of little.lifesryle things that could be adding up