To download Windows 11 setup, launch Settings, then navigate to Update & Security, and select Windows Update.
Now click the Check for updates option. Once the scan is complete, there should be an update to Windows 11 ready for you to download and install on your computer.
To avoid any installation problems and errors, go through the guide above before installing your new Windows and do everything you can to ensure a clean installation.