Right-click on Discord, select 'Properties', go to 'Compatibility', and select 'Run this program in compatibility mode'.