Hello~When these episodes occur, have you eaten anything unusual that you don't normally eat on a regular basis? You may be having a reaction to the foods you are eating if this is the case. Food allergies can cause the symptoms you are having.
If you haven't seen your GP about this, I highly recommend that you do, he/she may want to do an upper and lower GI to see what is going on.