Please check the name that you had changed.
Open SQL Server Management Studio and connect to SQL Server as shown below.

Check whether the SQL login user name is in the format "computer name\SWMaster" (the format of the unhardened scenario is "computer name\Administrator"), as shown in the figure below.

Run the failoverRepairComputerNameChai script.

Hope the answer can help you!