You prepare for these by doing specific exercises for them, sad as it may seem.
Leetcoding problems? You grind them out for a month or two to prepare for doing them during interview loops.
Mock interviews can help too, to get you better at handling the stress. You can use services/groups for these, or just go interview for random places you're not necessarily planning to actually say yes to.