~snip~
Have you tried to exclude the Electrum folder? Both the Electrum folder from your program files and AppData should be excluded from the windows defender.
Just try to follow this how-to exclude the Electrum folder both in program files and AppData from here
Guide to Exclude files/folder from Windows DefenderLet's see if it still doesn't work.
Let me also ask if what version of your OS?
Are you using an optimized OS and downloaded from an unknown source?
Is it 64 or 32 bit?