Take them out of the breeding box, these are very stressful to the fish as you are finding. Leave the mother in the main tank to give birth there. If you have plenty of decor in the tank, some of the fry will survive. If you try to save every fry, you'll soon be over run.