The number one way to avoid this is keeping your head in the right place and I don't mean body position. Riding at a track day, you should never be pushing 100%, it's the wrong place, wrong time. Go race novice where you get trained to push past that level. I'll come into a corner "too hot" at a track day but I'm only riding at 80%, so I can handle it, roll off gas a little bit, hold brake a little longer, lean a little deeper etc and no big deal. If you're riding too hard, go get instruction to learn how do deal with it.
To answer your question, if you are too hot mid corner and find yourself coming up short on talent, force your eyes down the track where you wanna go, not at that outside edge of asphalt, slowly roll back a few % throttle, push the bike up as far as you possibly can and lean your shoulders down into that corner, it'll tighten up the corner and if you screw it up, you'll have a nice easy lowside. doing anything hasty will most likely result in a not easy high side.
Depending on your riding style, if you're trail braking to apex or gas open through whole corner, etc. changes how you handle it as well.
Best thing to do is go get on track instruction
Shut up and ride.
Nun sacciu, nun vidi, nun ceru e si ceru durmiv