Your body needs an adequate amount of sleep to fight of infections. That included the coronavirus. If you are losing sleep because of fear (and it's hard not to when the mainstream media is pumping it out right now 24/7) you aren't doing your body any favors. Studies show that people who don't get quality sleep or enough sleep are more likely to get sick after being exposed to a virus, such as the common cold (rhinovirus). Lack of sleep can also affect how fast you recover if you do get sick.
We are still going to get sick once this pandemic is in our past. We cannot live out lives apart and inside our homes for the remainder of humanity's existence, so at some point, we all need to do our best to keep ourselves healthy.
During sleep, your immune system releases proteins called cytokines, some of which help promote sleep. Certain cytokines need to increase when you have an infection or inflammation, or when you're under stress. Sleep deprivation may decrease the production of these protective cytokines. In addition, infection-fighting antibodies and cells are reduced during periods when you don't get enough sleep.
So, your body needs sleep to fight infectious diseases. Long-term lack of sleep also increases your risk of obesity, diabetes, and heart and blood vessel (cardiovascular) disease. –Mayo Clinic