That's quite possible.
> and he likely lacks the capacity to end it if he wanted to.
Nah, he could end it any time he wants. Iran will stop bombing its neighbors in a week or so, and things will more or less return to the pre-war status quo.
He chooses to not end it, because the one thing that he cannot stand is losing face.