Thanks for the reply @Ashish.
Yes. I think after introducing the foam with frictional contact, the non-linearity of the model increased. I am attaching the solver output file in this Solver output file link and also a screenshot of the messages multiple errors and warnings.
I also want to ask you if my approach is correct?
Thanks.