Does anxiety give you gas?

So about 2 months ago I had a really bad panic attack it escalated very quickly one munuit I was having palpitations next I was sweating and getting too hot then my stomach hurt n I could feel gas filling inside me I then passed out.. my partner said I farted a lot while I was out cold.

Has anyone experienced anything like this? 😂 I found it so funny when I woke up n he told me but he was very much in shock n thought I was dead. He said my whole body went Wight even my lips went white and I was very cold