Your hip internal rotators may be tight and weaker compared to your external rotators. Hence, the imbalance.
I’ll stretch the hip internal rotators and strengthen my hip external rotators (glute max).
You can do exercises which encourage hip external rotation like putting a band around your knee while squatting.
Something interesting I learned is that ...