This study aimed to analyze the impact of the lockdown period due to COVID-19 pandemic on the mental health status of healthcare workers and identify the related risk factors of psychosomatic distress. We conducted an online questionnaire survey to investigate the general demographic characteristics, perceived stress level, adult attachment style (AAS), family cohesion and adaptability, social support, sleep state, emotional state, and physical health of healthcare workers during the lockdown period due to the pandemic in 2022. We compared the mental health status between doctors and nurses, and further analyzed the factors influencing sleep, emotions, physical symptoms, and severe psychosomatic distress separately. For factors that showed statistical significance in the univariate analysis, forward stepwise regression was used for logistic regression analysis to identify risk factors for the corresponding issues. A total of 622 healthcare workers participated in the survey. Among the participants, 121 (19.5%) reported sleep problems, 209 (33.6%) had negative emotional states, and 147 (23.6%) reported physical health problems. There were 48 (7.7%) healthcare workers with severe psychosomatic distress. Compared to the group of nurses, the group of doctors exhibit a higher prevalence of emotional issues, physical health problems and psychosomatic distress. Perceived stress was identified as a risk factor for sleep disturbance, while living with others during quarantine and family adaptability were identified as protective factors. Higher educational background and perceived stress were identified as risk factors for negative emotion, while subjective support was identified as a protective factor. Perceived stress and coming from a rural area were also identified as risk factors for physical health. Overall, for the comparison between the no psychosomatic distress and severe psychosomatic distress groups, perceived stress was identified as a risk factor for severe psychosomatic distress, while subjective support was identified as a protective factor. Healthcare workers’ potential mental and physical health problems are related to their educational background, family cohesion and adaptability, perceived stress and social support. This makes it clearer on how to deal with and prevent adverse consequences when facing stressful situations.