Thank you all for reply.
I figured it out, it was nonstandard frame rate of source video, it was 30.249 and some frames was randomly get offset when video is rendered. Even on the rode which was done with masks.
The solution was, i turned on preserve frame rate in advance settings in composition

And also in render settings i told it to use exact frame rate of 30.249

That fixed the issue and all was normally rendered.