Reproduce:
- Run the following query against wikidatawiki_p: SELECT * FROM comment ORDER BY comment_id DESC LIMIT 1000;
- Export the result as Wikitable
You may find comment_text of a number of results containing pipe character (|) which will break Wikitable. This should be converted to HTML entity.
(I only tested Wikitable. I am not sure whether similar issues would exist in other formats.)