Make sure you have some thickness to your floor/ceiling but most importantly make sure you don’t have a continuous wall mesh that serves both floors.
This is an example of a mistake I’ve made. 1 huge meshe that intersect another meshe in the corridor. Should’ve made it 3 meshes total, one on each side to avoid the sun to leak through. I suppose you have the same problem between your floors.