Diabetes is a common cause of hot flashes and night sweats, this occurs when the body needs more sugar (hypoglycemia). It is important to control your diabetes well to prevent this.
Often confusion and feeling unstable come along with the sweats, drink or eat something with sugar immediately.
Keep something by your bed so you do not fall when you feel like this. Consult a medical professional for advice in how to control your blood sugar levels better.