I avoided wide stance squats for awhile, and focussed on a narrower stance and deads.
Your hip flexors may either be too tight, or too loose.
Your joints maybe be stressed from wear and tear. Try MSM/Glucosamine/Chondroitin. Also try cissus. And more fish oil. And back off til it feels better - a small setback now is better than having osteoarthritis when you’re old.
I visit a chiropractor and find that my hips are better after an adjustment. A good physiotherapist or chiro, who’s experienced in sports injuries, maybe helpful.
If you have any chronically tight muscles anywhere, start thinking about stretching them more - they maybe pulling your body out of balance and placing additional strain on your hips.
Do you do mobility drills to warm up? You should be doing legs swings in different directions. Lunges in different directions. Stepping over hurdles or the power rack bars. Side lunges under the power rack bars. Also static stretch the hip flexors. And you may need to do some glute activation drills such as side shuffles with bands around your legs. My guese is all the wide squats built up your adductors, which is good but you may need to strengthen your abductors. If your not doing these things they can make a big difference in your hip mobility and activation. They will make your squats and pulls stronger to.