you are experiencing while eating proteins
could be related to malabsorption
. So , I suggest to consult a GI specialist to do the malabsorption tests to rule out what is really causing you such problems.
Once you discover the cause, try to avoid the foods that contain it.
Meanwhile, you should look for the foods that makes your diarrhea re-appear and avoid them.
All the best!