Handling data loss

As a new Billing Solution Provider entering the KSA market with an offline system, how should we manage situations where there is no internet connectivity for a short period and our on-premise server experiences data corruption, resulting in the loss of some invoice data? Additionally, how should we handle the resequencing of invoice numbers if a data recovery from a snapshot results in the loss of some data that was previously uploaded to ZATCA? EG if INV200 was already uploaded, but after recovery only data till INV190 was recovered, how do we handle this?