When I open my electrum it showed notification : WALLET FILE CORRUPTION DETECTED. PLEASE RESTORE YOUR WALLET FROM SEED AND COMPARE THE ADDRESSES IN BOTH FILES.
That happens when the "
xprv" and "
xpub" keys in your wallet file didn't matched but both are valid.
As a result the wallet will show addresses derived from that xpub with private keys derived from that xprv.
Since those aren't a pair, the private key wont be able to restore the address where you got it from. (
like what's happening in your case)
The correct addresses derived from your xprv are the ones restored by your seed phrase.
AFAIK, that was a conditional bug in a quite old version when upgrading from its previous version, but not in the latest versions we're using now.
It can also be edited in the wallet file to show addresses with high bitcoin balance despite not having the correct extended private key and seed, you know "
the usual".