This issue occurs when you have some encoded data which pgAdmin4 can't decode while generating CSV file.
You can report this issue here, Please also include details to produce the issue (if possible also include some sample data), PG version (encoding details), Platform (encoding details) etc.