The solution for me was right in front of my eyes the whole time: the error suggests that whatever token was at index 0 (in my case, a file name) was unexpected.
In my case, I forgot to add Data Source=
to the connection string, and just gave the name of my .db
file.