I made a big business mistake and only realized it two years later. Here’s what happened—and how you can avoid doing the same.