It remains unclear whether cortical changes in poor sleep quality are modulated by emotional distress in the general population. An Elastic-Net Regularized Generalized Linear Models based on bootstrapping was implemented to acquire candidate regions for sleep quality. The moderation effects of emotional distress on the relationship between sleep quality and cortical morphometry were acquired by a hierarchical regression. The low level of emotional distress could offset positive correlation between sleep quality and dorsal anterior cingulate cortex (dACC) volume. The result indicates dACC volume enlargement might be a compensatory response to poor sleep quality, or a marker of resilience against recurrent emotional distress.