Hi.
Thanks for your query.
Noted the history and understood your concerns:
Although you have not mentioned the symptoms of IBS,
stress is the most important causative factor of IBS.
The hard time getting the erection can be due to the stress, the illness, not feeling good, weakness and such things.
It is known that many other problems like
fibromyalgia, weakness, asthenia also accompany the stress and
anxiety.
I would advise you the following in such a situation:
Consult your Doctor for clinical evaluation, examination and the investigations of the blood, stool, urine,
colonoscopy,
CT scan of the abdomen to see if there is any positive finding and get treated accordingly.
If all the tests are normal get treated for the stress, IBS and you will start regaining the strength in general or proper erection in specific.
Do not worry.