Couple things:
Summary: improve your setup. Watch your second pull, use your hips not your back. Try those two things first.
Setup: Check out your back on the failed attempt. I sense some rounding in the force . . .
Make sure you’re a little more upright, big chest, butt down a bit more.
Your setup on the warmups was much better.
What’s funny is I can tell it’s not a heavy weight for you to get overhead. But the balance issues are harder.
Also it seems you’re starting the second pull too early, when the bar is right above or at your knees, rather than waiting till the bar is at your pockets and needing your hips to get the weight up.
Practice some hang power snatches to get the feeling down. You can split the movement into a slow dead and a BAM second pull if you need to in the second phase of that practice. By doing that, too, you’ll keep the bar a little closer to your body. But lets see what setup and getting the second pull a little better solves before we worry about that.
TP