why did i feel like i had to yawn but couldn’t and shortness of breath

This could be a sign of a medical condition such as anxiety or panic disorder. It is important to speak to a doctor if you are experiencing these symptoms. Other possible causes could include allergies, asthma, or a respiratory infection.