Gilbert Blythe does not die in any of the Anne of Green Gables continuing movies or miniseries. He and Anne share a lifelong romance and adventures together across all adaptations.
If you recall a death, it may be a different character or adaptation.