Stop the habit
It is rare to actually break teeth by biting your nails.
This actually happens because you are grinding the edges of the teeth together while biting your nail. Your dentist can probably repair the teeth with a composite restoration, but as long as you are still biting it will break of again. You must stop the habit if you donot want this to happen again. It is more common to damage you gums.