Hi,
If the male is attacking her, you need to separate them. Unless you have seen them mate, the egg will not be fertile anyway. In the wild they choose their own mate, and they do not always like the mate we choose. If these birds have not formed a bond, they should not have a nest box. First, both birds need to be at least 2 years old. They need to get along. If they do form a bond, you will notice them spending most of their time together, sitting together, grooming each other and finally mating. Until a pair meets all of these criteria, they should not have a nest box. If they have exhibited all of this behavior, and they have a nest box, then possibly the male is trying to get the female to go into the box. But again, he should not be in the same cage if he is attacking her – he will end up killing her. I would remove the box, separate the birds, and wait a few months. Then try putting them back together to see if they form the type bind I described. If not, then they are simply not compatible and should not be together. Not all pairs are compatible and not all make good breeders. If your birds are under 2, then separate them until they are over 2, and then try them together again.
Thank you for asking Lafeber,
Brenda