How is she now? Can you lower the water level a bit to make it easier for her to get air? You may have to just wait for her to digest that pea. I wouldn't feed her for a few days. I hope she gets better.
I was eating rice with cooked peas I had one in my hand and accidentally dropped one in. Perry went after it like she hadn't eaten for weeks. I tried to get her not to eat it but she gobbled it down WHOLE. I saw Perry jumping up trying to get some air. When she finally got air, she went down to the bottom of the tank. She's still there but breathing rapidly.