Oh no, so sorry for your loss. Without knowing what they died from, I would be hesitant to eat the eggs.
Are they locked in a run or are they free range. Could they have eaten something toxic?
Also are you in an area that has avian influenza? This is from the University of Minnesota webpage:
Detecting HPAI early is key to limiting the spread. Sadly, one of the first signs of HPAI is sudden, unexplained death. In 2022, most HPAI cases report poultry drinking less water before unexplained death.
- Egg layers may show signs of depression, have ruffled feathers, and be quieter than normal. Other signs may include purple or dry combs.
If you suspect AI, your state ag dept. will want to know right away! You can call your local rep and they will come out and test your flock.
If you don't think it is AI, you could send one of the bodies into your state lab for a necropsy to determine the cause.