This phase I trial studies the best dose and side effect of tazemetostat in treating patients with solid tumors or B-cell lymphomas with liver dysfunction that have spread to other places in the body or cannot be removed by surgery. Tazemetostat may stop the growth of cancer cells by blocking some of the enzymes needed for cell growth.