How do I stop a Youtube video from embedding?

There is no bug. The default behaviour in Discourse is for a youtube URL to be automatically converted to an embedded video. To create a hyperlink, type some text, highlight it and then click the link button

This is a link

“Paste as plain text” is irrelevant, because the Discourse editor is not WYSIWYG - it’s all plaintext by default. Formatting is added by special sequences of characters, or automatically when certain types of link are detected.