I changed the language option to babel, and now I'm getting a "Unknown language" error!

Indeed, this is a common error message whenever you change the language options passed to babel, or even when you remove the babel package from your project.

Luckily, it's also easy to get rid of: Just click on the "Recompile from scratch" option at the bottom of the error message window, and it'll be gone.