is 150 mg of caffeine a day ok while ttc?

I'm paranoid.... I had my first miscarriage last month and I didn't have any caffeine, I did everything I could have and still miscarried.