This moves the bailout recording mechanism into a separate CompilerErrors class instead of repurposing HIRBuilder. This is to allow other passes to also record errors instead of immediately throwing.