The office beds story is bate. It was not because he was planning to turn Twitter into a labor camp, so the 40 or other optimal number of hours per week debate is futile. He put a bed there because it happened that some stayed over night anyway, sleeping on the office floor in a sleeping bag. I've seen such a photo on social media, with a dude sleeping in a meeting room, on the floor.
It happened to me, too, here in Romania. I've stayed over night at the office to finish whatever was to be done. Happened only a couple of time over all the working years. It was my choice entirely, and often been admonished next day for staying over night in the office. I can understand why working over hours sometimes happens. Talking about myself, I don't know why that happened at Twitter, and never worked for Twitter or for Elon Musk.
My point is, I can understand how one can choose to work over night even when asked to go home. The dawn hours, somewhere between 4 and t am are the worst. I would have loved to have a bad to crash on instead.