The common ingredient I've found in various high protein bars that seems to cause these symptoms is Maltitol (artificial sweetener). You can google maltitol side effects to get more info. Here's one paragraph I found:
Well, when your stomach starts making funky noises and you feel the uncomfortable effects of gas happening inside your body about an hour after eating that product, there's only ONE word that can describe what has happened to you: MALTITOL!
Check your labels
__________________
Maryland (DC Suburbs) - first 51 years

The Villages - next 51 years