Researchers have found one in ten healthcare workers have had thoughts of suicide or self-harm during the pandemic.