ESP32 OTA update using GSM SIM7000

I am trying to update my esp32 using gsm module. I need to resume the OTA download if it is stopped due to some reason. I have handled this exception, but once the download is complete, i cannot flash my esp using the downloaded firmware, i get checksum error. need help