Fatal error only when I want to stream

Hello, I have a problem with games using UE4, when I want to stream a game via discord or xsplit, the game always crashes with a “fatal error”, do you know where this could come from?