Thank you for your query.
Please stop googling and consult an Infertility
specialist at the earliest.
First get yourself investigated for the 2 miscarriages.
Causes could be genetic, uterine abnormalities, hormonal disturbances, infections, autoimmune conditions etc.
Next, have a complete PCOS investigation panel done.
Assess your tubal patency by HSG or laparoscopy
Have your partner's semen analysis
Maintain a healthy BMI and take folic acid
Also, with PCOS, you might need help of ovulation inducing agents to conceive, as PCOS patients have irregular ovulation and irregular cycles.
PLease consult an expert at the earliest.