How to deal with miscarriage/early pregnancy loss?

Autumn Kay • ttc since 2014. had a miscarriage 7/2/16.
I got my first ever bfp yesterday morning and by the night I was bleeding heavily and the hospital said I'm not pregnant any more. Couldn't have been more than 3 or 4 weeks along so atleast it was still early. My fiancee and I have been trying for 2 years to have a baby due to my PCOS and it happened finally but it got taken away so soon. I got 4 good hours of pure joy before I started miscarrying. How do I deal with this? I feel so hopeless. 😥😥😥😥