1 is OK.
2 is not idiomatic. It should be "Imminent death".
Interested in Language
Are the following sentences correct? if yes, I'd appreciate it if someone tells me the differences between their meaning.
1- He is in imminent danger of dying.
2- He is in danger of imminent dying.
The first sentence is correct; the second is not. You could say that "he is in danger of dying imminently," but that sounds awkward to me. Stick with the first.