Troubleshooting installation issues | Microsoft Docs: “Troubleshooting Visual Studio 2017 installation and upgrade issues”
Okay, First: make sure your temp drives are pointing to a valid location. Check out this post for more help.
Second item: make sure your computer’s temp folders have enough available space.