When it's no longer safe to volunteer at a public-facing nonprofit due to the Coronavirus COVID-19 or any other widespread contagion, send a resignation letter like this.
It is with regret that I'm writing to let you know that I can no longer volunteer at the Food Bank.
My doctor has advised me that due to my autoimmune issues and other risk factors, I should not work in close proximity to the general public, even while wearing a mask and gloves.
I hope to rejoin the crew when the pandemic situation changes and it is safe to do so. I miss you all!