Error in checkFullRank(modelMatrix) deseq2
See the second example from the vignette, which is exactly your situation. The software cannot differentiate between the batch effects vs. condition effects because the groups are exactly the same.