Long-term use of omeprazole for about three months or more may cause a drop in magnesium levels in the blood. Low magnesium can cause an irregular heartbeat (18).