The niacinamide form of vitamin B3 has a reputation for allowing people with certain liver problems to tolerate some foods and chemicals, even some natural chemical byproducts of normal body chemistry.
We occasionally hear that reported in the heavy metal detox groups, especially in those with a combination of arsenic plus mercury.
You may do better by taking smaller doses several times per day.
Andy Cutler has written on that subject. It helps people to focus in on the food groups, etc that are most likely to cause the problems. He then adds suggested supplements, etc to help the affected liver detox process(es).