A nosebleed does not affect the validity of fasting unless some of the blood reaches the body cavity or the person intentionally swallows it. In such a case, their fast is invalid, and they must refrain from eating and drinking for the rest of the day and make up for that day later.