Many things can be linked to anxiety/ depression but a major contributing factor is a lack of SLEEP
“A 2012 study comparing CBD with a sleep aid called nitrazepam found that high-dose CBD at 160 milligrams increased the subject’s duration of sleep.”
So although many things can cause anxiety/ depression its best to not add any issues and you should get some good quality sleep,
“Poor sleeping patterns are strongly linked to depression, particularly for those with a sleeping disorder.”
Cannabidiol in Humans—The Quest for Therapeutic Targets (nih.gov)