Time...over time my tolerance has increased. Making sure you eat something that absorbs some of the spicy or balances out the spicy.
I add yogurt and even cream cheese to spicy curry eaten on rice noodles. Coconut milk in Thai curry again eaten on rice noodles.
Salsa mixed in cheese dip with tortillas.
I have more issues with oranges and orange juice than I do with spicy.