ER visit with first period after miscarriage, DUB

Ni

I got my first period right on time, one month after my miscarriage. It seemed normal until I started passing lemon sized clots and bleeding through about 3 pads an hour. We went to the emergency room and they did blood tests and ultrasounds and said I had a very thick uterine lining and diagnosed me with dysfunctional uterine bleeding. They put me on provera to slow the bleeding . Anyone else had this experience? I’m so worried this means I won’t be able to have a successful pregnancy in the future.