Work help

Alexia

So I work in a daycare, I have worked in the daycare field since I was 17 about to turn 18. Im not 20 almost 21. I’m also pregnant almost 20 weeks along. I keep getting sick while pregnant I’ve had covid, upper respiratory infection, and pneumonia all while pregnant and all within less than 2 months. The baby is okay and I’m finally feeling better but my ob really wants me out of the daycare field cuz I keep getting sick and it’s not good for me or baby. I also agree so I’ve been applying to jobs out of the daycare field until I go on maternity leave in very end of July- then I plan to return to the new job after my maternity leave is up. Do you think my work will understand why I leave this field