Follow a heart-healthy lifestyle. Eat healthy, get regular exercise, and do not smoke. Limit or avoid alcohol. Do not use stimulants such as caffeine and illegal drugs such as cocaine or methamphetamine. Yoga or meditation may help treat a fast heartbeat due to stress or anxiety.