This sentence is not correct. Here are two that are OK: a) She has been with him for five years. b) She had been with him for five years before they split up.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.