Install CUDA 10.2 on RHEL 8. Error when trying to install nvidia-driver

Trying to install 10.2 on RHEL 8 system. I downloaded cuda-repo-rhel8-10-2-local-10.2.89-440.33.01-1.0-1.x86_64.rpm, installed it. When I run the command dnf -y module install nvidia-driver:latest-dkms I receive the error message: module yaml error: Artifact ‘cuda-0:drivers-440.33.01-1.x86_64’ was not in valid N-E:V-R.A format. I re-downloaded the software just in case of corruption and same issue. I was able to install 11.8 but need to run with 10.2 for compatibility of software I will be running on the system.