Hi @uniqueW ,
The error message that you offered is too less for analysis, please start to troubleshoot this issue from SQL server setup up log( summary and detail). The setup log is located at C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\Log\20220509_152724 as the screenshot mentioned. You may find the failed reason from SQL setup log.
In addition, please check if below threads that has same error message could help you. These threads only for reference, still suggest you starting from SQL server setup log to find the failed reason.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".