You write "images.numpy()" and "labels.numpy()", when I believe you intend to write "image.numpy()" and "label.numpy()" (since you are assigning "image" and "label" to the pairs of values in "pair_ds").
You also do not increment i in the while loop (but this may have just been a mistake in the presented code, since you say that the loaded content is ok).