Visual Studio Community 2019 fails to install via Unity Hub (all editor versions)

I’ve been trying to get this installed, but nothing seems to help. I have tried running as administrator, removing VSC2019 manually, restarting the pc, deleting temp files, etc. The error message in the info_log.json is not very helpful. It just says this:

Installation failed. Reason: Error: Error while installing the module visualstudio : [object Object]

Any suggestions?

You could try installing it directly from Microsoft: Visual Studio 2022 Community Edition – Download Latest Free Version