Suddenly, selected text is copied to clipboard

Yeah, I have this issue too, it is really annoying.

As mentioned above I recommend to use PopClip with Auto-appear turned off by an exclude rule in any apps that exhibit a problem like this. Use the keyboard shortcut to activate PopClip when needed.

Alternatively, train yourself to hold down ⌘ while selecting the text, which inhibits PopClip.