Microsoft Visual Studio 2019. Windows 7.
Да, знаю, что вопрос о древнем, но приходится работать с этим. Ошибку выдаёт только при создании проекта под С++. Переустанавливал студию, не помогло. Что с этим делать?

Visual studio 2019 часто шалит на седьмой винде, лучше установить VS 2015/2017 или обновиться до Win10 и пользоваться и VS2019 и VS2022
А вы смотрели требования? См. https://learn.microsoft.com/en-us/visualstudio/releases/2019/system-requirements
Windows 7 SP1 (with latest Windows Updates): Home Premium, Professional, Enterprise, Ultimate
.8 GHz or faster processor. Quad-core or better recommended
2 GB of RAM; 8 GB of RAM recommended (2.5 GB minimum if running on a virtual machine)
Hard disk space: Minimum of 800MB up to 210 GB of available space, depending on features installed; typical installations require 20-50 GB of free space.
Hard disk speed: to improve performance, install Windows and Visual Studio on a solid state drive (SSD).
Video card that supports a minimum display resolution of 720p (1280 by 720); Visual Studio will work best at a resolution of WXGA (1366 by 768) or higher.