the \usepackage[T1]{fontenc} line is certainly wrong for xetex but on my updated (cygwin) texlive 2018 pdfinfo doesn't give any errors on the generated file with or without this line.
what happens if you use --no-pdf to xelatex and then run xdvipdfmx by hand on the resulting xdv, that usually gives better diagnostics for pdf generation stage. David