Two. The sentences, and what they are actually for
Everything happens for a reason. It was not meant to be. At least you know you can conceive. Be patient, this is a test. Have you tried relaxing about it. Are you sure you are not doing something wrong.
Most of these come out of somebody's discomfort rather than out of any belief they hold. The person wants the conversation to be all right again, and reaches for the nearest thing that would make it all right, and hands it to you.
One of them is different and it should be rejected outright rather than understood. That this happened because of something you did. That is a claim about your conduct made from an outcome, by somebody who cannot know, and there is no version of it that is safe to entertain. It is not a harsh test of your faith. It is just wrong.
Sabr, in the tradition, is not the absence of grief and it never has been. It is what a person does while grieving. Nobody was ever required to feel nothing.