People are quick to make someone a hero and then a zero too after a few matches.
His good Test form does not mean he's not a limited LOi batsman. You can think of him as a Fawad Alam/Sarfraz when it comes to the ability to score fast and accelerate, particularly against the pacers.
In ODIs, he isn't a top 3 batsman where you're not required to go after the bowlers. He plays at a position where you're also required to hit bowlers towards the end of the innings, if you don't get out early.
And that's what his kryptonite is. He cannot accelerate and hit the bowlers when he has to play limited overs. And he has been caught in such situations in ODIs already, just like Fawad Alam. Or even Sarfraz.
So, he can bat in ODIs when there's no pressure to take on the bowlers. But when chasing or setting scores in the last few overs, he can't hit.
Very similar to Sarfraz in that area.
Of course he will play the ODIs going forward. But this is one limitation coaches should be aware of. And can affect success/impact.