Government powers were "Enumerated" in the Constitution to keep them from legislating any laws that would deny/take away any of the Freedoms/Rights therein.
All "powers" not enumerated to government are "RESERVED" to the States or People.
Neither State or Federal Governments has "ANY AUTHORITY" to legislate a law to change anything in the Constitution or "Bill of Rights".
Only a "Constitutional Amendment" can change "ANYTHING" in the Constitution.
The powers not delegated to the United States by the Constitution, nor prohibited by it to the States, are reserved to the States respectively, or to the people.
Hamilton, in Federalist Paper 84 ask the question:
“Why even include a Bill of rights/freedom of press, if Government can not legislate outside the enumeration of powers granted to it”??
All these "Red Flag" laws are a "SERIOUS" violation of the Constitution, and "JUSTIFICATION" for citizens to use the "Second Amendment" to correct it,
If Government fails or refuses.
“When rights secured by the Constitution are involved, there can be no rule making or
legislation which would abrogate them. [Miranda v. Arizona, 384 US 436, 491.]