The Village Sin Eater
atlasobscura.com
atlasobscura.com
It's awful, I read the whole series just a year ago
The central character is treated like untouchable scum because of his profession as eater of souls. Yet he is necessary. I seem to remember about the eater getting a reward of actual food. People would leave the eater of souls some food and stay the heck out of his way while he does his job not to have any interaction with him. So by eating souls he actually gets to eat.
A similar theme of discrimination against undertakers is explored in the Japanese film Okuribito ("Departures").