Aching Hips

So whenever my spouse and I have sex my hips hurt like 10 minutes into us having sex and it doesn’t matter the position they will just ache and ache. I went to the doctor a while back and said that my hips were out because of my foot arches. So I’ve been wear inserts in my shoes and that was supposed to help. But I feel like nothing is helping. And there is no advice anywhere. Has anyone else experienced this or is this just me. Lol