Ulcers may not be connected to bleeding gums. Bleeding gums are a sign of gum disease. You probably just need to get your teeth cleaned. ( scaling and polishing) . This should take care of it.
Next Steps
Consult a dentist to do the needful.
Health Tips
Many people are prone to ulcers. Have a healthy diet and sufficient exercise. Reduce stress levels as they can trigger ulcers. Apply oragard B or hexigel in case of pain due to ulcers. Adding a multivitamin tablet helps.