The best thing to do is use replaceable APEX tips, when they get worn, you chuck them, and they have grooves formed into them, ACR (Anti-Camout on Removal) which helps them stay in the screw. You use a magnetic tip screwdriver made to take the interchangeable tips such as the Snap-On
SSDMR4B.
The other thing you can do on a really tight screw to make the tip stay in the screw is to fill the head of the screw with Clover valve lapping compound. This abrasive makes the screwdriver tip stay in the screw and sometimes works wonders for you.
Charles