The best way to prevent the berry filling from overflowing during cooking is to not fill the pan more than halfway. This allows space for the topping to rise and the filling to bubble during cooking. You can always add a sheet of perforated foil or parchment into your air fryer to catch drips as well. The perforated types allow air to still circulate.