UE5: Lights through the walls using Nanite, can it be solved?

Hello, I hope you are all well. I have put in section of UNREAL 4 because I did not see the one of UE5

I am writing

because I have a problem using nanite. It seems to me that nanite does not work with the function, “double or two side”. But is there a way to make it work on these modules or wall blocks?

I hope you have a good day.