Are you using ABP? Then probably the issue is that by restart/resetting the Arduino, you also reset the frame-counters at the device. Because of this, LoRa Server rejects these frames as it could as well be a replay-attack. To work around this, you could check the Disable frame-counter validation box (on ABP activation).