Most probably this has to do with your whey protein being made with whey concentrate. This is a cheaper version of whey that has lots of lactose, and lactose can cause GI issues, including your problem. The best solution would be to opt for whey isolate, since it has no lactose in it, so it will not cause those problems.