The text file itself is not opening?it might be corrupted due to some virus invading your device storage. Or you mean the passphrase you used to copy paste in the text file just suddenly didn't work? If that's the case it is possible that you had unintentionally add or type some character while doing your copy paste act because as you said when you manually type the passphrase you remember it works so I don't think there's hacking involved.