I think it violates the right to liberty and pursuit of happiness in the same way forbidding the possession of nuclear warheads violates the 2nd amendment: kinda, but for the greater good.
You'd be surprised the number of people who believe nuclear warheads are protected by the second amendment. Either way, that's a fair compromise and this is not.
So it's okay in your opinion to curtail some constitutional rights when it makes sense to you, but not others? That's a pretty inconsistent position.
The argument being made for warheads is the same as that for staying inside: not doing so would pose an outsize danger to others. Whether I agree or disagree isn't the point personally, I'm arguing that the curtailments follow from the same basic premise and are likely legal. We'll see how it plays out.