Thank you for your response, Alex Rogers.
When I set the AudioMoth to CUSTOM the flash is short as the paragraph says: "Short flashes (10ms) of both LEDs between recordings mean an earlier scheduled recording has been cut short due to a recording failure".
But, when I set the AM to DEFAULT the flash is longer, like the paragraph that says: "A long flash (500ms) of both LEDs occurs when there is a recording failure, due to an SD card write error or a low battery, that results in a recording being cut short. If this happens immediately on switching to DEFAULT check that the SD card is inserted correctly"
The memory I have been using is a 32GB SanDisk Extreme. I also tried three different 64 GB SanDisk Ultra flash drives but it doesnot work. I have already configured the AM several times in the desktop application but I have the same error in three devices.