You need to update graphics and update drivers to latest version and disable hardware acceleration on discord and reinstall discord app on windows will help you fix black screen when sharing screen.