Spit up

My son is 2.5 months and recently as been spitting up between or right after feedings and sometimes acts like spit up is coming up but it is painful/uncomfortable. I’m worried about pyloric stenosis someone please ease my mind 😔