I’ve seen it happen over and over again, regular smokers stop smoking because weed only gives them anxiety now. It’s literally a gateway drug to an anxiety disorder.
I think it works for a while to cover up an anxiety disorder. Which is typically a result of adverse childhood experiences (like emotional neglect), until processed.