Heltec stick lite V3 looses memory

Hello,
my Heltec stick lite V3 will loose part of is memory when the battery dies when using meshtastic. After flashing the most recent firmware, I changed the user name, but after a battery drain, it lost the user name and went back to the default name. Has anyone found a solution to this problem besides not allowing the battery to die?