>>12279827 (OP)learning more physics doesn't make you more or less religious (in my opinion). It just makes you think more critically about your religious beliefs.
For example, physics idea X is in contradiction to religious idea Y. If you want to reconcile this contradiction then you either reject X, or you reject Y. If you reject Y, you may replace it with another religious idea, or you may not.
In this way, religion can keep evolving. For example, I was reading recently that Bertrand Russells great-great grandfather made a claim that was controversial at the time, that the earth was created before 4004 BC. If such a claim was against the norm then, and we have a more extreme claim of an earth billions of years old now being the norm, then the interpretation of the religion must have changed over time. Similarly, the more physics is discovered which contradicts the current religious interpretations, the more religious interpretations will evolve. In a way, if someone wanted to be religious, they could change their beliefs indefinitely to keep the core untestable beliefs