I know, I have the same fears as you. I believe it will pass constitutional muster.
There are mush more restrictive laws on the books right now in every state that allow the “authorities” to take a person into custody for 48-72 hours for mental evaluation IF it is determined that they are an “imminent” threat to themselves and/or others.
Also, people may be taken and quarantined indefinitely IF it is determined they have a dangerous, communicable disease.
Shortly after my (then) wife ran off with another guy, she called 911 and stated that I was going to kill myself. Police showed up and gave me a choice.....I was going to a psych center.....voluntarily or involuntarily. Taking my security clearance in mind (I work for the Navy), I went voluntarily.
One week later when being discharged, I found that she had drained half of my savings.