your games are hanging (fortnite\dead by daylight)

Fortnite is hanging when I enter a match and the same happened with dead by daylight what should I do?