According to description the fault coming from your SD card. buy a new class 10 SD and you may solve the intermittent fault.
open