To stop the Frightened condition in D&D 5e, the character needs to move to a location where they can't see the source of their fear or they make a Wisdom saving throw at the end of their turn to try to overcome their fear.