CUDA: Fail if user-specified CMAKE_CUDA_ARCHITECTURES doesn't work
If an user has explicitly specified CMAKE_CUDA_ARCHITECTURES
and it doesn't work when determining the compiler we should fail instead of trying the other architectures.
Otherwise CMake will find an architecture that does work and testing the compiler later will still fail.
Reported initially in #20751 (closed).