I remember only one scene, which involved an unexpected sudden depressurization (maybe a blown airlock) in a space station. The main character rushed to an emergency air chamber and survived, barely. The detail that stuck in my mind is an apparent blood spatter on the wall, which makes the audience think the protagonist was injured, but soon after the broken bottle of ketchup is revealed.
I honestly don't know whether this was a book or a movie. I clearly described it visually above, but I also seem to remember bits of the protagonist's internal monologue, such as how many seconds he had to get to the emergency chamber (I believe it was 90-120 seconds, but at the upper end that would require a second person to revive him with CPR or something, and there was nobody else around/alive/awake), so maybe it was a book with vivid descriptions.
I recently rewatched 2001: A Space Odyssey, and was confused when I didn't see this scene, which is from a book or movie that I somehow confused with 2001. So I likely watched or read this in the early aughts.