I found a solution. Rather than editing the metadata, I re-encoded the files using ffmpeg, in such a way that the video and audio content was simply copied and wrapped in a new, error-free MP4 container. Here's the command:
ffmpeg -i video_1.mp4 -vcodec copy -acodec copy video_1_fixed.mp4