I didn't look closely or use the stimulant @anon46966594 provides, Imwill when I'm back at the big rig but
It looks like you are pounding on the EEPROM quite hard - they have a limited number of write cycles before failure… that can happen pretty soon if it's just part of every loop.
a7