Ok, so to prevent this from repeating...The lid likely blew because of a vigorous fermentation (a good thing). If the foam from the fermentation reaches the top of the bucket and sneaks into the airlock, it can block the airlock, which causes pressure to build until...
You may need a bigger...