When I added dwarf gouramis to my barb tank,its was fine. but when the gourami male started building nest,he kept on chasing the barbs.
It didnt bother them to much since he would only chace them from his nest and they leard to leave him alone.it was a 23gal.but if he is chasing them in a way that would stress them.I guess youl have to move either the rams or the gourami.also sometimes having lots of plants helps break line of sight and provides hiding place.
could you post a pic of your setup