Changing nc-->1 will result in a generator/discriminator capable of handling one channel (grayscale). However, you need to also adjust the dataloading/transforming step to convert the images into grayscale. That error suggests that this is not happening yet.
You can add a transform like this: torchvision.transforms — Torchvision 0.10.0 documentation 3