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

Indeed, the error is a common one when you change the babel language option. You can clear this error by clicking on the "recompile from scratch" option at the bottom of the error message window.