I looked it up and found that what causes brain freeze is due to slurping on ice beverages or ice cream without stopping which I saw on this video. They say it is not dangerous though, and does not cause any brain damage.