Damaged or corrupted files are the primary cause of the system's failure, so the infected or damaged files might be the cause. It's possible that a game playing in the background did not permit Discord to launch.