Hi there!
In areas where the state and federal governments have concurrent authority, the federal government can decide to regulate that area exclusively. In such a situation, according to the doctrine of preemption, the state law is unconstitutional.