Valium for Anxiety induced Insomnia

Hi all! I’ve just been to the doctors and have been prescribed Zoloft/Sertraline 50mg & Valium/Diazepam 2mg for severe anxiety, depression & insomnia. Now, I’ve just dug myself into a little rabbit hole of people who have become addicted/reliant on Valium after using it too frequently to help them sleep. My doctor didn’t mention anything about Valium being potentially addictive. I only plan to use it 2-3 times a week just until I can train myself to sleep without having panic attacks and throwing up. Is 2-3 times a week alright?

P.s. I’ve never had any kind of medication for anxiety until now, this is my first time using anything for it as I’ve reached a breaking point of panic attacks 5-10 times daily & sometimes not eating for multiple days. I’m just worried that I’ll fix my problems but become addicted.