Even though you can flash new images, it might still be worth to try charging with a different cable, and with a different charger, and with the cable rotated the other way. I had a cable that seemed to work one way but not the other.
You could also check that “sudo dmesg -w” says when the charging cable is connected. For me, that shows the following lines repeated a few times: