Limma 'error in length (top genes)' for TREAT

Hello, I’ve been using Limma for differential expression. It had been working pretty well. I’ve been using it with the TREAT method in my analysis. However, I ran some new comparisons on data that had previously worked for a different comparison, but this time it seemed to get an error at the TREAT stage. I have re-ran this comparison without the TREAT setting and the analysis finishes. I’ve also tested a pre-run comparison that previously worked with TREAT but this time it failed. Why might this be happening?