I found a workaround. One class had 6000+ STRING constants, but we really only need to reference less than 100 of them. The class was generated from data in our database. Keeping only the constants we currently need allowed the compilation to finish. Thanks for implementing the other workaround (workbench and final basket limits) in case we have problems with another class with many STRING constants.