If the datarate is changing by itself, it is most likely that on your LoRaWAN server the ADR (adaptive data rate) function is enabled and the LoRaWAN server is requesting the device to use a different data rate.
You cannot disable ADR on the device, it has to be disabled in the LoRaWAN server. How it is disabled, depends on the LoRaWAN server.