You posted mainly details of the symptoms and very little about your dietary habits, lifestyle etc. which have more to do with your condition than the end results.
Just a couple deep breaths should not have been a factor in all this, however prolonged excessive air swallowing would be.
Nasal deep slow diaphragmatic breathing is recommended.
Visit the normal breathing website for details.
Be mindful when eating, take your time with every bite
and if you have any issues with stress and anxiety, they should be addressed.
Yoga, meditation, nature walks, calm environments, relaxing music etc. may be helpful.
I have made a mnemonic: BBBCC (full house with Bs and Cs,lol!) which stands for Beans, Broccoli, Bran, Cauliflower & Cabbage.
Add to this carbonated drinks like beer and soda and you have a comprehensive list of gas producing foods.
The carbonated drinks are obvious for gas.
The aforementioned foods contain carbs, which only get broken down in the colon by bacteria (cannot be fully broken down by enzymes in the small intestine) and producing hydrogen and carbon dioxide.
Avoid those foods and also check for dairy intolerance,
(lactose intolerance, a lactase deficiency), however you can buy lactase supplements to remedy this enzyme deficiency.
The other possibility is SIBO, Small Intestinal Bacterial
Overgrowth, for which you should see a Gastro-interologist.
I hope this helps.
Cheers,
Niko