I have the same issue trying to export *.pdfs from *.slddrw files.
"Failed to run SOLIDWORKS"
It is intermittent I tried the same files and in one instance it worked and in another I got the same errors. Exported to different destination folders.
I'm guessing it might have something to do with any possibly dialogue box the pops up as Solidworks opens. Maybe task manager doesn't know how to script through this. i.e. 'Some drawing sheets are out of date. Do you want to update them?'
How do we get ride of these?