I am trying to compile a large document with several chapters in ShareLatex. Each Chapter compiles correctly with minor (often unavoidable) errors but when I try to compile more than 2 chapters together I get the following error: Server error, Sorry, something went wrong and your project could not be compiled. Please try again in a few moments. Trying again later does nothing to rectify the issue. This is in draft mode as well so images are not the issue.
EDIT: MWE included
\documentclass[12pt, twoside]{report}
\usepackage[utf8]{inputenc}
\setlength{\parindent}{0pt}
\usepackage{parskip}
\usepackage{setspace}
\usepackage{array}
\doublespacing
\usepackage[a4paper, left=40mm, top=25mm, right=20mm, bottom=25mm]{geometry}
\usepackage{graphicx}
\graphicspath{{Images/}{../Images/}}
\usepackage[outdir=./]{epstopdf}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{arydshln}
\renewcommand{\arraystretch}{1.5}
\usepackage{rotating}
\usepackage{makecell}
\usepackage[justification=justified]{caption}
\usepackage{comment}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[C]{Chapter \thechapter}
\setlength{\headheight}{14.5pt}
\fancyfoot{}
\fancyfoot[RO,LE]{\thepage}
\usepackage[version=4]{mhchem} %for equations
\usepackage{chemnum}
\usepackage{xparse}
\NewDocumentCommand{\cecount}{ O{#2} m }{\ce{#2} (\cmpd{#1})}
\usepackage{etoolbox,calc}
\makeatletter
\pretocmd{\@makechapterhead}{\setcounter{cmpdmain}{100*\thechapter-1}}{}{}
\makeatother
\usepackage[journal = angew]{chemstyle}
\cstsetup{radhyphen = false,radsuper = true,abbremph = true}
\usepackage{chemscheme}
\usepackage{siunitx}
\usepackage[backend = biber, style=chem-angew]{biblatex}
\addbibresource{mendeley.bib}
\begin{document}
\chapter{Introduction}
\input{Chapters/chapter1.tex}
\input{Chapters/chapter2.tex}
etc...
\input{Chapters/chapter1.tex}andetc...to be useful the posted code needs to be something peopel can run to trace and debug the problem – David Carlisle Aug 30 '18 at 16:48compiles correctly with minor (often unavoidable) errorsis very suspicious, no tex errors are unavoidable, and given tex's error recovery strategies I would never use any pdf generated by a tex run that makes any error. But you have not said what errors you get or given any other indication of the problem. – David Carlisle Aug 30 '18 at 16:50