Foaming is always caused by contact of caustic (or alkanolamine in other types of acid gas removal towers) with condensed hydrocarbons. These condensed hydrocarbons may be have been
(a) entrained in the CG feed from the upstream scrubber due to high vapor velocity through this KOD or some kind of vapor liquid separation inefficiency in this KOD
(b) condensed out from the CG in the caustic tower itself - this may be due to low operating temperature in the tower which is below the dewpoint temp of CG at the tower operating pressure.
(c) due to the use of anti polymerizing agent such as hydroxyl amine NH2OH (or anti foulant dispersant chemical)in the tower to inhibit aldol condensation reactions (that would lead to formation of red oils in the spent caustic).
So
(a) check the demister in the upstream KOD
(b) keep the tower temp warm enough to prevent hydrocarbon condensation from the high dewpoint temp CG
(c) dope the weak caustic feed with anti foaming agent
Also check that you are removing all red oils accumulating in the recirculating weak caustic solution so that the use of anti foulant dispersant chemical is minimised.
See details in this article on caustic scrubber chemistry and performance issues.