Are you seeing that error if you are trying to download the Windows 11 ISO directly from the Microsoft website using the bottom (3rd) link on the web page?
If so, the best option is to use the middle (2nd) link to download the Media Creation Tool , then open that tool and choose to create the ISO on your C drive.