If the global option list or the package option list of babel contains braces the checks for conflicts in the load order of languages due to global and local options is broken and leads to a Missing \begin{document} error. The problematic code is the code starting in line 4428 of the current babel.sty:
If the global option list or the package option list of
babel
contains braces the checks for conflicts in the load order of languages due to global and local options is broken and leads to aMissing \begin{document}
error. The problematic code is the code starting in line 4428 of the currentbabel.sty
:MWE: