It may be the case that his base is still just following him and supportive of whatever he does.
But the number of people who voted for him vastly exceeds his “base”, and the entire MAGA movement is basically predicated on a form of isolationism, or at least not pro-intervention. Part of the reason it became popular was as a reaction against the wars in Iraq and Afghanistan.
So I don’t think it’s as simple and one dimensional as you paint here. Which is exactly why I think it’s a systemic problem: many people probably voted for him because of the campaign promises of being against foreign wars.
My impression is that most of his voters are selfish and couldn't care less for other people's woes (migrants, sexual abuse victims, Iranians or whatever), but will care if his antics hit their own pockets. I'm not American so I may well be wrong, though.
Their support is not the result of a rational calculation of self-interest, and never was. If it was, a base of rural and poor people would never be supporting a coastal city New York elite born with a silver spoon in his mouth as "one of them". But they do, because he is one of them in the way that matters to them. They are fighting for something larger than themselves, and are completely committed to a cultural war for social hierarchy.
> if gas prices and general inflation spike hard, as is nearly a given if Trump doesn't back out from the war?
As an aside, I don't think there is any backing out of this war. If somebody launched a missile at your country and killed hundreds of schoolgirls, and destroyed ships on diplomatic missions while leaving the survivors to drown, while also assassinating your country's leader (but not out of any intention of liberation), would you just let things go because they stopped bombing? Of course you wouldn't. Your country would continue to retaliate. And it is trivial to punish America. Even if America unilaterally decided to "declare peace" and withdraw from attacking Iran, Iran has every reason to continue locking down the gulf and making Americans pay the price. Unlike with tariffs, there is no backing down from these price increases even if Trump gets cold feet. But, even so, there is no reason to believe it will move the needle on his base. There is already talk of "short term pain for long term gain" among those who realise this.