I suggest you move the SD card to a PC, check it for errors, then examine the config.g file and make any corrections needed. When you put it back in the Duet you must either restart the Duet or send M21 to tell it that the card contents have changed.