For liver failure, probably some exaggeration is embedded in your mind. Masturbation is not connected with your liver problem. May be some LFT ( liver function test) will determine the presence of excessive bilirubin in your blood due to hepatititis or bile duct obstruction because of other reasons etc. That causes low morale and interruption method. Normal, safe herbs in Ayurveda and Liv 52 medicine is well searched in connection with such problems. To my patients in such condition, I recommend to meet Ayurveda doctors preferably. Hope it gives you answer.