What could be the affiliation if an author is currently not working anywhere?
Check and see if the author's last affiliation consents to being cited as affiliated; if so, I don't see why it would be a problem.

If not, then simply list the author as "Independent Researcher" and provide home address. Or leave field blank. There's no requirement for an affiliation for academic papers.