"lack of popularity" is correct and usable in written English. You can use it when you want to describe something that is not very popular, for example: "The new sitcom has been struggling to gain traction due to its lack of popularity.".
Dumb and Dumber memes were popular, a reflection of Peña Nieto's own lack of popularity, which sits at just 23%.
Why does he keep going on about his lack of popularity?
The raid's less than triumphant outcome perhaps accounted for its lack of popularity in critics' circles.
Not that the restaurant seems to be suffering any lack of popularity.
The results are a reminder of his lack of popularity with the conservative base.
(Camp would later explain soccer's lack of popularity in America by noting its comparative lack of danger).
The same poll that testified to the Palestinian desire for factional reconciliation also indicated Fayyad's lack of popularity.
Being a terminologist, I care about word choice. Ludwig simply helps me pick the best words for any translation. Five stars!
Maria Pia Montoro
Terminologist and Q/A Analyst @ Translation Centre for the Bodies of the European Union