"few if any" vs "few, if any"
The phrase 'if any' is parenthetical, no matter what is meant.
A parenthetical phrase (which can be a single word or a quite long clause) adds meaning to the sentence in which it appears but is not a fundamental part of the sentence.
Parenthetical phrases should always be surrounded with punctuation either parenthetical commas, brackets or, in some cases, dashes.
This means, as Mozibur Ullah says in a comment above, that the first sentence is incorrectly punctuated. Changing the punctuation does not change the meaning.
In the above paragraphs the parenthetical phrases are written in bold type