Rib pain during pregnancy

So I’m 23 and having upper rib pain under my right boob only I know it can’t be the baby bc he’s still too small but it’s been like this for 3 days and off and on but mainly when I lay down or eat a lot...it hurt when I inhale to breathe ... is it just the muscle stretching under my rib or what?