Yeah the mask and timing is what caused that one prisoner to be in so much suffering since he knew it was going to happen imminently so he held his breath.
If it were done gradually over a period of like 30 minutes, he likely wouldn’t have noticed and just drifted into unconsciousness.