If your Windows 10 product key is not working on Windows 11, check the Windows Edition, your activation status, and then ...
Defender will continue to provide security even for unsupported Windows 10 PCs. But Microsoft still wants you to move to Windows 11.