Error counter did not increment

I am sending data through LoraWAN to Chirpstack application server. The data is received successfully most of the timer but sometimes during the uplinks an error occures saying that : “Frame counter did not increment”.
And I couldn’t figure out the source of this error and more importantly how to fix it.
Thank u in advance :slight_smile: