Git diff is using Myers algorithm by default on raw text lines. Its output can be quite different compare to nbdime diff for notebooks. And therefore when creating new comment, it is not uncommon that upon reload the comment position changes.
This is especially true with GitLab that requires the line in the original and the new file to comment on an unmodified line.