pcos & 21.

My bf and I of 6 years are wanting to try and conceive. I've been pregnant accidentally twice but was followed by a miscarriage. I'm concerned this could happen again.. I wasn't ovulating for a very long time and was to take medication.. Suddenly the last two months I am receiving a regular cycle. But I am still scared and dont know where to start.