Store Long into Arduino Nano EEPROM

use EEPROM.put() (and EEPROM.get() to read) and you won't have to deal with the bytes

you can look also at this thread where I shared a simple code to deal with default values