It's difficult to see without the fullo comp and Dan's right about the error in line 1, although that doesn't explain the issue wit the line:
Has your project reverted to Legacy ExtendScript? You can check this in File > project settings
When I'm debugging expressions, I'll create a text layer and add each line in turn to the sourcetext. The error is suggest AE cannot get a number, so see what the code is failing to turn into a number.