Narrated 'Aisha: (the wife of the Prophet) Um Habiba got bleeding in between the periods for seven years. She asked Allah's Messenger ﷺ about it. He ordered her to take a bath (after the termination of actual periods) and added that it was (from) a blood vessel. So she used to take a bath for every prayer.
The Prophet Muhammad ﷺ also taught us that if something is beyond our understanding then we should not worry too much but instead trust Allah's plan for us as He knows best what is good for us. We can learn from this hadith that even though some things may seem difficult or confusing at first, with patience and faith they can be overcome with ease InshaAllah!