Pandoc error 1 when I knit

Welcome to the forum.

I am not an expert in the area but I imagine that we need to see what the file looks like. Can you post a cut dovn version of the document and some sample data here?

These instructions are not really intended for Rmarkdown or Quarto but they may help a bit:

A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here.