Hello happy.
If you have an enlarged prostate you are likely to want to pee frequently.
Whatever happened needs to be sorted out. You don't say what it is and I'm not going to ask but that and the ED are bothering you enough for you to come on here and ask advice then you really need to go back to your GP and speak to him/her, especially with bladder pain.
You may have an infection and that means medication.
IT's doubtful if anyone on here will be able to help you without more information and that won't happen for you until your problems are investigated.
Don't delay, Go to GP and tell them what the problem is and come back to us if you need help with what you are told
Best Wishes
Sandra
*****