Let me explain why #2 is correct but #3 is wrong.
In #2, "death" is the object of the preposition "after": "after her death". That makes sense.
In #3, "death" is STILL the intended object of the preposition (because you still mean "after her death") but the sentence is written in such a way that it appears that "five years" is the object of the preposition. This confuses the listener. When you say "I met him after five years", I start to wonder "after five years of what?"