How to change db owner after the associated AD account is disabled
Run this for each database.

   -- Change the database owner
    ALTER AUTHORIZATION ON DATABASE::databasename TO sa;
    GO


To generate the script to change them all:

SELECT 'ALTER AUTHORIZATION ON DATABASE::' + db.name + ' TO sa;'
FROM sys.databases db
WHERE owner_sid != 0x01