This seems to be similar to what is being reported in this thread: [RESPONDED] Battery percentage gets misreported as 0% occasionally - Framework Laptop 13 / Linux - Framework Community
It seems to be something related to the Framework firmware and Linux, so probably not something I can fix by replacing a piece of hardware.
Go follow that thread if you are interested. I’m marking this one as “solved” (even though the root issue ain’t).