Cannot alter the user 'dbo'. (Microsoft SQL Server, Error: 15150)

--To fix this issue we need to change the default owner to 'sa' and then try to update the login.

Use [database_name]
sp_changedbowner 'sa'