Avoid reset on Thingy:53 when connecting USB-C

Has anyone got an idea on how to avoid resetting the device, as soon as USB-C is connected to it?

I want to avoid losing state when charging the Thingy:53.

Also, has anyone experience with connecting a separate battery, just to keep RTC running, when the device is off?

Related