Edit: here's [0][1] some sources that says FTX ponied up $135M for the name to remain through 2040. Your question still stands, will that name stay even if the organization that has the name doesn't exist or is circling the drain? All depends on the terms of the contract, I guess.
[0] https://www.local10.com/news/local/2021/03/27/nba-still-need...
[1] https://www.cbsnews.com/miami/news/its-official-miami-heat-h...