Basically the OP is asking how to handle these types of temptations.
What is the alternative? Doubt, dispair, hate, or some version of these.
I believe the underlying inquery is “why temptations at all?”.
The Our Father says, “lead us not into temptation”,which dosen’t say “take
away our temptations”. Temptations serve a good purpose, for they show us
what our spiritual character is made of and whether we love God with our
whole heart. St. Paul asked that his temptation be removed from him, and it was denied for God said to him “my grace is sufficient for you.”
Temptations as God allows, for he knows all, is a good thing, and only a bad
thing if we fail to pass the test he permits us to experience.
So the first thing we should be doing is to bless Him for trusting us and to
see temptations as an opportunity to draw us closer to Him.
For a temptation against faith, we make an act of the will, and say,“I
believe Lord everything you say.” That is in contrast and in spite of
our emotional feelings. If our emotions are going in the opposite
direction of our will, all the more pleasing is the act of faith, since
God is not proding us along with consolations, and we have to do the act
of faith and fight our strong emotions to the contrary.
The devil of course tries to make us think otherwise, that if we are not
emotionally into our faith, then that is a sin, to overwhelm us with his
favorite trick, discouragement. And of course everyone has blue Mondays
and feel as tho their faith is weak. But that is not the case.
The will is the governor of our faith and determines what we assent to.
And that alone determines the strength of faith even tho our feelings
are screaming the opposite.
Just a few thoughts.