It's best not to add medications when betta eggs are hatching. The bubble nest will likely protect the eggs, but the medication may be toxic to newly hatching betta fry. Wait until your betta fry is a week or two old before adding any chemicals to the tank.