In my case I got this error due to a missing quotation mark after a new variable, a path to a database, was added to .env file.