I keep my religious beliefs and scientific beliefs mostly segregated, so they don't affect each other too strongly for the most part. The reason for this is that those 2 things are reinforced by different sources. My religious beliefs are reinforced by spiritual experiences (such as repeatedly being stumped by [challenging life/work problem], praying for help, and then getting distinct thoughts or impressions that miraculously unblock me... or sometimes I'm miraculously unblocked through the actions other people), my scientific beliefs are formed and are refined by reading scientific literature + critical thinking. If the 2 are in conflict (which is pretty rare), it's usually my religious beliefs that adapt to new scientific understanding. For example, if evolution seems to be in conflict with intelligent design, I reconcile by concluding evolution itself may have been the thing that was intelligently designed (i.e. "this computer program can't have been intelligently designed, we've proven it was created by an LLM" --> "ok, then the LLM was intelligently designed").
One thing that would probably alter my religious beliefs significantly is if abiogenesis or synthetic life were proven possible (i.e. you can clearly show in a lab how to make life arise from non-life, or how to create artificial life). I don't find the current "primordial soup" or other abiogenesis arguments convincing enough to abandon religion, though I do re-visit the wiki every couple years to see what's new on that front.