The argument is that most gun laws aren't "valid federal law."
The constitution restricts the federal government from infringing on the right to bear arms. It doesn't list it as an enumerated power of Congress, and the 2A only grants the power to regulate militias (and there's an argument that even the word "regulate" back then meant more to "supply/assist/resolve/provide-for" than it meant to "control").
There are some arguments re: taxation or commerce clause, but even when those clauses are used to justify un-enumerated federal laws, they don't over-ride an explicit amendment.
Exceptions that might be valid federal law fall under some other federal authority, like imports/exports, laws regulating the military, or laws that apply only to federal property, etc.