Need to tell husband I’m pregnant but it’s complicated

So a little back story is that I’ve had 3 miscarriages in the last year during the miscarriages I was very depressed and so was my husband (for other personal reasons) but I felt like I went threw my losses alone . He was sent away for 4 months and I just found out I was pregnant yesterday. He gets weekly visits and phone calls but I’m not sure when I should tell him all of my losses happened before a heartbeat was seen so I’m not sure if I should wait until there is a heartbeat to tell him . He is currently at a facility treatment center and he will not be out until June i’m not sure if I should hide the pregnancy until I have more answers but having 3 miscarriages back to back is making me uneasy . I just don’t want to cause him anymore stress than what’s going on already while he’s sent away thanks for the responses in advance❤️❤️❤️