CUDA ToolKit 11.8 installation Failed at the Nsight Visual Studio Edition, Windows 11

I have the same issue here.
At first, the CUDA installer asked me to install Visual Studio, then I installed VSCode and Visual Studio Community, but the CUDA installer finally failed to install Nsight Compute.
So, I continued to install the standalone version of Nsight Compute and rebooted my computer, but the CUDA installer showed it failed to install Nsight Compute again, which made no sense because I had installed that application already.

Environment and Applications:

  • AMD Ryzen 5900X
  • nVIDIA 3080 Ti
  • Windows 11 Professional 22631
  • CUDA 12.3.1_546.12
  • Visual Studio Community
  • Nsight Compute 2023.3.1.1