The “QD” error indicates that the batch number is a repeat of the same batch number recently closed at the host. It may be because another terminal is programmed with the same MID, TID, Terminal Number, etc. as the terminal you are trying to batch (this usually occurs in merchant locations with more than one terminal). If you advance the batch number in your terminal, that should allow you to settle.
You should then find out if there is another terminal programmed with the same host settings as yours and have it reprogrammed with the correct settings