Launching the game breaks the discord

When starting the game, my Discord starts to restart and disconnects at the end. Reinstalling the game didn’t help. Running the game or discord as administrator did not help either. Please tell me how can I fix this problem?