Pressing the touch button sometimes resets all settings

I assembled a lamp on a Wemos d1 mini pro microcontroller with a WLED and a small (less than a meter) WS2812B LED strip. I also decided to make a touch button to control the WLED. It works, but sometimes when this button is pressed, all settings are erased to the standard WLED settings and even disconnects from the WiFi network. The connection diagram is in the attached image
Could someone tell me why this is so?

button0 default function is factory reset, so dont assign button 0 but but button1

I tried it and it works so far. Thank you very much. If I don’t write anything else, it will mean that this problem no longer occurs.