how to fix ffmpeg inaccurate time stamp that corrupts thumbnail generation

Solution 1:

You can usually fix this by creating a new copy of the video without re-encoding:

ffmpeg -i input -c:v copy -c:a copy output

Then try generating your thumbnails from the new video.