This probably has nothing to do with your issue but there is an option to have the Trip odometers reset each time the car is switched off or you can program either or both to continuously record until you manually reset them. That would explain why after refueling they reset but would not explain them resetting while the car was running.