Answer: IV, “was losing consciousness”.
The sentence describes one completed accident: Mr X fell down and lost consciousness. The past continuous “was losing” introduces an ongoing process where a completed consequence is intended. “While trying to collect an envelope from under the table” is otherwise a grammatical introductory phrase.