It seems you are using onedrive. right ?
What is your rstudio version and rmarkdown version ?
The error means that pandoc can't fint the file to convert. Rmarkdown should have written that file in the document directory for pandoc to find it.
We need more information to try reproduce - I think this is something related to your specific environment and not generic on the tools.
Thanks !