I'm not sure if this is the same error but there is a restriction with the length of text a cell in EXCEL can hold.
If it exceeds it, an error is thrown.
This happens when exporting from PLD also creates a second Sheet with the SQL text thrown in the first cell.
Try copy & paste with your SQL into an empty XLS cell and see if throws an error.
Actually it would be nice if PLD had the feature to send the sql rows in different cells.