What is going on? 5 weeks and bowel issues

I am SO gassy, one minute I will me constipated then a few hours later it will be soft stools. Or one day constipated one day not but regardless I’m gassy and it’s causing some cramps and discomfort. Is this normal? Gas pains hurt! I can’t stop passing gas cramping and pooping! 😂