Immorality leads to impurity.
Emotional pain is a terrible thing to endure, but the solution is not anything unbiblical.