I fixed the holes by rebuilding the mesh like this link:
I had the same error as this post when checking the log with isValid.