How RU cater for 16 layers with less then 16 ports?

Yellow marked is the number of layers with DMRS that is transmission scheme 1, correct?

This is the picture you need to focus on:

Yes, correct.

OK.
In this picture also number layers = number of DMRS and that is fix with transmission scheme 1, right?

Dmrs can be up to 12.

Very true 1000 - 1011 = 12 port.
But PDSCH layer is 8 only.

12 is for mu mimo.
But huawei extended it to 16 layers meaning 12 dmrs can be reused for users in other locations.
So that dmrs do not interfere one with each other since are used in diferent ue locations.