Data in Arduino UNO's EEPROM changes after 3-4 days randomly

I can't fully understand your last message, but I know it's important. I have faced issues with global variables in my earlier experience. What is the prefer datatype in this use case?