please talk this over with your doctor. Some newer medication only help you get to sleep, others help you stay asleep, and some “zonk” you out and so you might have issues with waking up.
Low blood sugar can cause anxiety-like feelings which typically are supposed to wake you up. Some people have this hypo-awareness and some do not. a hypo at night can be dangerous and that’s why I think this really can only be answered by a doctor.
if you have a lot of lows at night… it may be time to deal with that by eating a long-lasting carb designed to keep you form getting low, changing your exercise habits, consider changing either the dose or the timing of your long acting insulin or, if you pump, pump settings. this is another conversation I would suggest you have with your doctor as well. good luck!