Mental instability can disqualify you from owning weapons.
If you're expectation is that a government can magically make future mental instabilities apparent through some sort of screening, I think you may be expecting too much.
You can lose any right if you abuse it or through due process.