It was struggling in the "big tech megaprofit" way, not in the "pay for the servers" way.
This entire thing is an extended farce in two acts: (1) Twitter's leadership's inability to turn a highly addictive social media network into a regular money fountain, and (2) the sale of a potential regular money fountain to the single least qualified person possible.