Why does god give us false positives?

I find a reason for everything God does. We’ve been ttc 2 years and I believe that maybe God wants us to have more time living our life First and spend some time helping others before we have our handful with the children.

However I have recently had a false positive pregnancy test. I am so heartbroken I genuinely believed I was pregnant and was over the moon that the wait was finally over. However I came on my period and panicked I was having a miscarriage but the doctor confirmed I was never pregnant at all and it was probably a false positive.

I’m struggling to find a lesson learned from this? I would understand a miscarriage but why the false positive? I am deeply heartbroken and it has really damaged me. I was coping fine with ttc and getting negatives but now it hurts more than ever :(

Any help would be highly appreciated!