The bends are not the same thing, but I see what you’re getting at. A liquid under pressure will absorb more gas into solution than a liquid that’s not under pressure. When SCUBA diving, you are breathing compressed air, and it’s the high pressure of the air being forced into the lungs that allows the nitrogen gas to go into solution. Remove the pressure, and the nitrogen starts to bubble. Just like popping open a bottle of coke. (In SCUBA, we learned a little ditty when studying gas laws to remember that this is a demonstration of Henry’s Law: ‘The best way to remember Hank, the gas dissolves like in the Coke you drank!’).
I think it’s the compressed air you breath that causes the bends. And yeah, the pressure of the water on your body is transferred to your lungs, which then shrink unless pumped back up with compressed air. There’s a science toy called a ‘Cartesian Diver’ which illustrates this. You can make one yourself - find something that has a little air bubble in it and and is compressible, and weight it so that it just barely floats. Now put it in a a plastic pop bottle, and fill it with water and put the cap on. Squeeze the bottle, and the little ‘diver’ will sink because the pressure causes the air bubble to shrink. Release the bottle, and the diver will come up again.
Would you get the bends if you were suddenly tossed out into space? I don’t know. The pressure differential is one atmosphere. That’s like going from 33 ft deep in water to the surface quickly. Normally, that wouldn’t cause the bends. But if it happens instantly? I dunno. An air embolism is much more likely. Remember kids - if your airplane explosively decompresses at 30,000 feet, exhale. Don’t try to hold your breath!
Anyway, I don’t think your blood will boil, because the body does act as a pressure vessel. It’ll expand a little, and the pressure on the blood might drop a little, but I don’t believe it’s enough to cause it to boil. Remember 2001? There’s a scene in which a guy has to leave an airlock without a spacesuit and float across open space into another one. A lot of scientists I’ve talked to think that that is possible. I have my doubts, because I think the brain might become oxygen starved really fast and knock you out. But if you were pulled across unconscious, and were outside for no more than a minute or two, I think you might be okay.