Is there a way to force thumbnail re-generation for all files?

Because, I have noticed that randomly some image file thumbnails are not been displayed by the desktop app.

Yes, you can simple delete the .jpg files in the .ts folders.