Detect duplicate migration errors