[Git][ghc/ghc][wip/fix-25664] 128 commits: Handle heap allocation failure in I/O primops