Ok, it seems some images are smaller than your desired crop size of 224.
Could you please check this? Appenrently some images are 208 x 208, since the error message states randrange is called with -15. You can see the line of code here 41.
Code to reproduce the error:
test_transform=transforms.Compose([
    transforms.ToPILImage(),
	transforms.RandomCrop(224),
	transforms.RandomRotation(3),
	transforms.ToTensor(),
	transforms.Normalize(
        mean = [0.485, 0.456, 0.406],
        std = [0.229, 0.224, 0.225])]
)

x = torch.randn(3, 208, 208)
x_ = test_transform(x)