It’s not just random that you roll over and then fart. You have uncomfortable gas buildup and when your body feels uncomfortable you shift positions. In this case your body is succeeding in finding the right position to relieve the pressure, via farting.
Gas is a nuisance but sleep disruption is a serious health risk. It will reduce your quality of life and cognitive performance in every measurable way and shorten your life.
So it’s time to address the root cause: the gas. It is not inevitable to have extreme gas. But you are going to have to do some work and accept some changes if you want to fix it. The easiest thing you can do is modify when you eat. Stop eating after 5pm each night and see what happens. Delay your dinner until 8pm and see what happens.
If you cannot find better timing then you must look at what you are eating. Eliminate beans/lentils and see what happens. Eliminate brassica vegetables (broccoli, brussel sprouts, cauliflower) and see what happens. Then cabbage. If none of that helps then look at eliminating carbs after 12 noon. See what happens.
May your farts and sleep improve.
We sense less and less as we get older. I’ve learned this from observing my kids and seeing them react to things like needles and spicy food with such greater sensitivity than me. I can remember being like them, too. But I just plow through experiences now with less sensation of them. Part of it is that my senses are physically more dull, but also important: my cognitive filters are much more established and sensations that are outside of them get little notice. Meanwhile my kids are like raw nerves at the mercy of every experience that comes their way. Bubble gum probably doesn’t blow your hair back anymore either but I bet it was awesome when you were a kid.