Quartus 18.1 Lite bug. Create a Cyclone V project, open the MegaWizard for RAM 2-PORT, select M10K, true dual-port, set q_a width to 20 bits, check "Create byte enable for port A". The possibilities are 10 and 5 bits (correct), but the byteena_a bus is sized to (19:0) and the validator rejects the IP core parametrization. If the q_a width is set to 18 or 16, the wizard behaves correctly and byteena_a is (1:0). Should be the same in the 20-bit case.
If the width of the data input port is 20, you can only define the size of a byte as 5. In this case, you get a 4-bit byte-enable port.
I was not able to replicate the scenario, byte_en[3:0] which is 4 bit after selecting M10K, true dual-port, set q_a width to 20 bits Please check the image attached..
I got the problem,
while setting 2-port ram the option " what is the width of a byte for byte enable?" drop down box by default have 10 bits selected, if we click on next we get this error.
So just select 5 bit and reselect the 10 bit will eliminate the error.
We can see correct byteena_a width.
Let me know if this has helped resolve the issue you are facing or if you need any further assistance.