[Git][ghc/ghc][wip/mangoiv/ghc-9.12-bp] 9 commits: Handle heap allocation failure in I/O primops