How do I keep faith in research without fooling myself?
You have accepted that failure is the medium you work in. The hard part now is keeping faith through the dead ends without letting hope curdle into self-deception. That is a genuinely difficult balance, and the fact that you feel its difficulty is what protects your integrity as a scientist. Hope and honesty are not enemies, but they pull in different directions, and you have to hold both hands at once. Hope keeps you going through years of failure. Honesty makes you read the data as it is, not as you wish it were. Lose the first and you quit; lose the second and you fool yourself and everyone downstream of your work. Guard the honesty deliberately. Let a colleague pressure-test your hopeful results before you believe them. Write down in advance what would prove you wrong, and mean it. Keeping faith does not mean bending the evidence. It means trusting the long process even while you refuse to lie to yourself about any single result.