Writing to SD Card causes MCU to restart after 12 iterations of the loop

Once again that worked like a charm! I really appreciate your help!