To prevent mozzarella sticks from bursting while frying, freeze them for at least 30 minutes before cooking. This helps the cheese firm up, reducing the chance of it melting too quickly. Also, ensure your oil is preheated to 375°F (190°C) for a quick fry that crisps the breading without overcooking the cheese.