I'm 30wks & have sore hips with just mh body pillow btwn my knees. I posted here & ladies suggested an extra pillow, as our hips are widening & that would better align them. It's kind of a nuisance at night when rolling over, but it has helped.
Maternity pillow is my best friend at night. Also it helps if its cool in the room .. :)
Invest in a maternity pillow. Best $50 I've spent so far in this body changing time. My husband hates it, because it frequently ends up between us in the middle of the night, but its better than not having us both in the bed
Try a fluffy pillow between your knees to line up your hips. I feel your pain! Hopefully you get some sleep!