[NFC] More informative error message on error from MLIR emitters
[NFC] More informative error message on error from MLIR emitters

1. Dump MLIR module to dumping folder for inspection
2. Don't attempt to attach MLIR module contents to error: it's too large to
fit, inconsistent with other errors, and will lose the stack trace.
