Reddit users and Amazon customers have claimed that taking magnesium supplements has helped curb their nail biting habit.