The only way to prevent beriberi in pregnancy is to get adequate B1 or Thiamine. Avoid polished white rice and alcohol. Alcohol depletes thiamine. Eat plenty of fortified foods such as bread and fortified rice.