You can try setting the batch_size to something really small. And then use
img, y = next(iter(train_set))

to see if you are able to extract one batch.
It might also be that your installation of PyTorch for some reason has been tinkered with. What version are you on? Have you tried reinstalling/upgrading?