Add error handling and make 32bit compatible

1 job for 88-pipes-broken-on-macos-when-using-pseudo-ttys in 2 minutes and 8 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #97017
test-nightly

00:02:08