If an AI bubble is on the horizon, what can we do to learn from our history and protect ourselves from the worst?