While The Goldbergs' series finale did come less than a year after the sitcom killed off Jeff Garlin's Murray Goldberg, this was not the catalyst that brought an end to the show. In 2022, Jeff Garlin was fired from The Goldbergs due to allegations of inappropriate behavior on set. This is far from the first time this has occurred in network sitcom history. Roseanne was canceled and retooled into The Conners due to Roseanne Barr's racist tweets, while Netflix's That '90s Show ignored the existence of That '70s Show's Hyde due to criminal charges against actor Danny Masterson.
https://screenrant.com/goldbergs-murry-death-cause-cancellation-no/