It can happen if the peppers aren’t sealed well. Make sure the cheese filling is packed in tightly without overflowing, and check that the edges of the peppers are pressed back together after filling. You can also freeze them 10-15 minutes before frying to help the breading set and keep everything inside.