Welcome to HealthcareMagic forum.
First possibility is that it might be the muscular pain
. Hot fomentation and local muscle relaxant
ointment will provide the relief. Second cause can be the abdominal structures which push against the ribs and not the baby. Nothing can help you then. It will continue till delivery.
Dr. Rakhi Tayal