@DavidCarlisle I'm sorry, I can't locate the error. The document I'm pasting into already has ~80 errors or so already. The \the \relax thing is probably not why it can't compile I have now realized because the other references have those warnings as well. There are also plenty of this:
Undefined control sequence.
<argument> \@listctr
Undefined control sequence.
<argument> \@listctr