recurrent miscarriages

A
I have had 4 losses in the past 18 months. Dec 2015, sept 2016, Jan 2017, and May 2017. Has anyone had this many losses? They have all happened around the same week(8/9). I have been to 2 REs and am currently being seen at a research/teaching hospital. At the last appointment the dr gave me a rx for doxycycline and said that I might have chronic endometritis(CE). Anyone else have experience with this? She said I could have a diagnosis done for CE with a uterine biopsy but that it would be pretty painful and the rx is what they would prescribe if it was positive. So that's what I'm doing now.
I have had one successful pregnancy in the past and my dd will be 4 in August.