If you accidentally swallowed air and are feeling bubbles or gas in your esophagus, it should typically pass quickly. The sensation of bubbles or gas can often be relieved through burping, which can happen within a few minutes.
If you are feeling discomfort that persists for an extended period or if you have other symptoms such as pain, difficulty swallowing, or nausea, it's best to consult a healthcare professional. These could be signs of a more serious condition.