How are carbs related to hypoglycemia?

Directly. The usual way that hypoglycemia occurs is by eating carbs so that the blood sugar rises. The rising blood sugar causes the pancreas to put out insulin. If the Insulin output overshoots the blood sugar will go too low - therfore hypoglycemia. The treatment is preventative - limit the carb intake and spread it out over six meals during the day.