Owning and operating Twitter comes with unavoidable controversy, and the spillover to Tesla, whose stock fell roughly 20% soon after Musk forced the Twitter sale, presumably wasn’t worth the risk.
Article source: https://www.huffingtonpost.co.uk/entry/elon-musk-back-out-buying-twitter_uk_62c8a8a9e4b0451684627ffb