For what it’s worth, essentially the same thing happened to me yesterday; perhaps it’s a common problem?
All of the above happened exactly as jjakob said. Then I attached a keyboard using a USB hub (that I bought from Purism). It was a powered USB hub connected to power, so that’s not the problem. And it, and the keyboard, had worked fine with my Librem 5 a few days before.