Find the program you use to add new frameworks to your Visual Studio 2022 installation and run it
You will see three buttons namely Modify, Repair and Uninstall.
Click on Modify
Click on Install while downloading to start thedownload and installation process.
After the installer installs the workload then close it and restart Visual Studio Community 2022 and you will now be able to Create a new Windows Forms Project using .NET Framework