Sorry for you loss, but I am also havent heard that its harmful...
I haven't heard sex would cause a miscarriage. Miscarriages are unfortunate but happen for many reasons, most out of our hands. Take care of yourself.
My OBGyn told me sex does not cause miscarriage. I have read online that way later in pregnancy it can induce labor.