Listen to me, don't panic but you need to call your doctor right away. Throwing up blood is something only a professional should check, please go to the clinic now.
Actually, severe vomiting can cause a small tear in the food pipe, but throwing up blood is a medical red flag. My doctor specifically warned me to get checked immediately if this happens.