Ahhh...I am so sorry he's sick...I remember these days with my TJ
We tried many, many things for TJ's IBD - In the end the only thing that worked for him was Tylan Powder that the Vet gave to me to try.
This sometimes does work for some dogs with these IBD issues (and it doesn't work for all dogs).
But if you do a search here on YT for: Tylan Powder
You see all my odd threads from 2005
It might be worth a shot to ask your Vet about it. It is pretty safe, even if it has to be used long term. My current Vet had his own dog on it for life
...TJ is now free of those horrible episodes.