To advise you anything on this a proper clinical examination is necessary. This is nothing to be afraid about...donot panic. Also donot delay Ur dental checkup. The bleeding might or might not be related to the ulcers.
Next Steps
visit a nearby dentist asap
donot delay
Health Tips
if it is painful use cold pack over it.