The message about the MOF compiler is a difficult one. I have seen it in more than one post with installation failures, but I don't think it has ever been resolved.
On the other hand, the screenshot says "Wait for the Database Engine recovery handle failed". This message means that SQL Server did not start, when Setup wanted to run configuration. In this case, we can expect there to be a file C:\Program Files\Microsoft SQL Server\MSSQL16.MSSQLSERVER\MSSQL\LOG\ERRORLOG. If you have this file, and you find a message about 256 misaligned reads, you are subject to a known issue where Windows 11 reports a disk-sector size that SQL Server cannot cope with.
Microsoft has published an article with workarounds for this problem.