This is a generic error which means that SQL Server did not start when Setup wanted to run installation scripts on the instance. You need to look at C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\LOG\ERRORLOG to get more details of what is going wrong.
Note that the actual can be different depending on the options you chose at install.