Hemolytic anemia caused by medication can be prevented. Avoid the drug that is causing the problem.
There is no way to prevent inherited hemolytic anemia. If an inherited anemia runs in your family, you may undergo genetic testing. This can assess your chances of passing it on to your children.