Another very obnoxious Hollywood trope /3
And generally, people can —and have— survived exposure to vacuum for a significant amount of time. You won't die instantly (though you'd probably wish you would in that situation).
One of the few shows or movies that gets this correct is The Expanse, but probably only because that fact is used as a plot device at one point.