It would help to know which Tamagotchi version you're using (there have been many, many releases over the last 25 years!), but on most of them, you should be able to press the A and C buttons on the death screen in order to hatch a new egg without resetting the entire device.