nextflow.config has a syntax error, usually an unbalanced brace or quote
The config is Groovy, not plain key=value, so an unclosed {, a smart/curly quote pasted from a document, or a missing comma breaks the whole file. The reported line number is where the parser gave up, which is often after the real mistake.
Look above the reported line for the last block you edited, and check braces balance and that every quote is a plain ASCII ' or \". Bisect by commenting out blocks until it parses — that finds it faster than re-reading.