Relax first. Two months is not a long time. You can ovulate early or late so I recommend researching "fertility awareness". That way you can see exactly when she is fertile.
That doctor sound like moron. I seriously doubt the miscarriage was due to your having sex. How far along was she when she miscarried?