I saw it suggested elsewhere that for how stupid this all looks, it was a big scheme to give cover of liquidity for the big capital folks (Blackrock, Vanguard, etc) who are also whales in TSLA to get out of TWTR without losing their shirt in the process as the company spirals. The reports of the sale gave them time to get out, and now that they are, Elon is renegging on the deal, and taking the heat for it, but ultimately, due to the benefits to TSLA's share price indirectly, making out fairly okay (or at the very least, gaining a credit for a favor or two from some folks who it's nice to be owed a favor from), even in light of what may be a few billion dollars worth of penalty for the breakup.
I won't say I'm subscribing to this idea, but I do find it intriguing, and it does offer a rationale for what otherwise looks like it could be a fairly stupid set of decisions made by someone who at least sometimes hasn't appeared quite so dumb. By all means, pick it apart and tell me why you think it doesn't hold water...just throwing it out there as it's an interesting theory.