Regularity and compactness of harmonic-Einstein equations