Whenis it too early to detect a miscarriage?

Never. Miscarriage can occur any time during pregnancy, it can occur so early, you may not have had pregnancy diagnosed yet. The first trimester (3 months) is likeliest time for miscarriage. See prior answers about this topic.