Sarah, I am sorry to know of your present state.
There are probably a lot of reasons for miscarriages. The biggest may be just the ruleset. Something is wrong with the pregnancy resulting in the fetus not being viable after some point.
There also may be cases where the entity, that was to be attached to the data stream of that child, changes its mind. The entity decides not to incarnate after all at this point in time. In that case it would have everything to do with the decision of the entity, and nothing to do with the loving home you are offering to provide.
Depending upon the probability of the event, you may be able to influence the pre-miscarriage with very focused Intent.
In any case it really isn't like a fetus, (person,) died. An FWAU, (Free-Will Awareness Unity - soul,) may check in with the fetus from time to time or may not have any data stream to the fetus at all before birth. And even after birth, there is not very much for a soul to do. So they may check in now and then, but leave the body mostly to auto-pilot. After there is a bit more decision space, there is a lot more constant contact until there is always a data stream being rendered to the FWAU.
Does this answer your questions? Good luck.