I found the below from the website
https://learn.age-up.com/blog/a-brief-history-of-human-longevity/1550-1600 | Life expectancy: 47 years
1600-1650 | Life expectancy: 43 years
1650-1700 | Life expectancy: 41 years
If we do the sums:-
1678 - 1617 = 61 and 1694 - 1661 = 33
If we go 1694 - 1617 we get 77
I would be inclined to think that the death in 1678 relates to the Edward born in 1617 and the death in 1694 relates to the Edward born in 1661.
It is not impossible for someone born in the 1600s to live to their 70s but if the average life expectancy was around 47 or less, then getting to 61 was probably pretty good.
Burial registers don't always show ages at death so that can make it difficult deciding to whom the death relates.