RTC DS3231 Reseting sometimes

Instead of using

rtc.adjust(DateTime(F(DATE), F(TIME)));

in the application sketch, use a dedicated service tool to set the RTC: