Mantids can throw up if they overeat but it shouldn't be bad enough to kill them. Keep in mind that many nymphs in the wild die, it's the reason why some species hatch so many nymphs from one ooth. Some of them just aren't healthy from the start and they tend to die during the earlier instars. Sorry for your loss, it always sucks when they die too early.