Texas has $1.8 trillion economy [1], which is the 10th largest economy in the world. To put that in perspective, the Texas economy is ~$500 billion larger than the entire Russian economy [2]. Texas is called the energy capital of the world for good reason, but the energy market is massive -- it includes much more than oil -- and the Texas economy overall is way more diverse than that [3]. It is tied with New York with 52 Fortune 500 corporations headquartered in Texas, only California has more with 54. What happened in Detroit is unfortunate, but Texas is not Detroit. That would be like comparing Dallas to Detroit in the NFL - they both wear silver and blue and they both play on Thanksgiving Day, but they are on polar opposite ends of the spectrum in every other conceivable way.
[1] https://www.forbes.com/places/tx/
[2] https://en.wikipedia.org/wiki/Comparison_between_U.S._states...