Grit one’s teeth

Meaning: To endure something difficult or unpleasant with determination.

Example: She gritted her teeth and continued working despite the pressure.