Updating warn to error when unsupported number of layouts detected.