You take vitamin D from the sun. That's why your deficiency is most noticeable in winter. However, you also have a deficiency in summer, so it helps to take vitamin D in a different way.
If you get a panic attack at night, I recommend progressive muscle relaxation. This is an exercise that will definitely help you in these situations. When your body is relaxed, so is your head.
The most important thing is that you know that a panic attack is very unpleasant, but in any case totally harmless. You're not in danger. You just have to find a way to get through the situation and accept it.