Traditionally, when an acclaimed TV show nears its conclusion, it usually saves a shocking character death for the finale. However, there are rare exceptions where a TV show features a crucial death a few episodes before the finale, which heavily affects the other characters.
Source:https://www.cbr.com/tv-deaths-happened-before-series-finale/