TLDR: write your wallet passphrase on a piece of paper, don't rely on only electronic means.
Which wallet were you using? I feel that's a critical part of your warning here. The reason is because every single hardware wallet explicitly recommends writing your passphrase down on something not electronic (except yours, apparently).
So if you want to keep people from committing the same mistake, please share which one wallet doesn't provide this explicit warning.