The problem started with corrosion at the surface between the head and gasket.
After machining, there remained a deep pocket of corrosion which may have prevented proper sealing of the head to the block.
The corrosion was removed by selectively blasting.
This shows the cavity filled with sealant.
The area filled flat to enable the repaired head to properly seal.