The error message means that SQL Server did not start when Setup wanted to run configuration tasks.
You need to look in the SQL Server log to understand why. You find it C:\Program Files\Microsoft SQL Server\MSSQL15.SQLEXPRESS\MSSQL\LOG\ERRORLOG, assuming a default installation.
You can attach the file here if you need assistance. You will to rename it to ERRORLOG.txt to be able to do that.