I had very bad rib pain from the start of my third trimester till I delivered. It happens as the organs are being compressed and pushed towards the rib to accomadate the growing baby. I got myself a maternity pillow to support me while I sit and lay down. It really helped. But of course, if your pain is severe please check with your gynae.
This kind of pain manifested starting my 25th week. I believe it’s because the baby is growing bigger and is starting to squeeze our organs.
Please consult your gynaecologist , do not self medicate take care!
Check with doctor