You seem to be one of those who are stuck with a little too much literalness. Nate was pointing out the irony of Edgar G.'s fatal condition during his last role, much like John Wayne knowing "The Shootist" was his last ride. The Duke didn't really die in a saloon shootout with grudge-bearing bad guys, either.
He died because Opie sucked the life out of the scene at the end.