That is not at all what looking at their financials say. Twitter was a very profitable company which over hired like crazy in 2021. This could have been solved without gong crazy like Musk did. Just do responsible layoffs.
There are no articles to confirm that it was losing $4m a day prior to the acquisition. This is a number that Elon put out (post acquisition) to justify layoffs.
There are no articles to confirm that it wasn't, either.
As for justifying layoffs, Twitter (or X, or whatever it is) seems to be working just fine, despite the dire predictions that the whole thing was going to die within days.
https://www.macrotrends.net/stocks/delisted/TWTR/twitter/ebi...
https://www.macrotrends.net/stocks/delisted/TWTR/twitter/num...