You specified more than 10 here documents using <<.
Simplify your command line to use fewer here documents.