Good for realizing.
You know you have the behavior but can't stop, sound similiar to some people with addictions huh? And they usually need help, well no exception for you, you likely need help and support to stop this enabling behavior. Recommend trying alanon and/or seeking professional help with a counselor that can help you in setting healthy boundries.
The addicted may or may not change, but you'll be more sane.