Dear Roaa,
The error message you got indicates that the total number of antennas simulation.nAntennasBaseStation and the antenna configuration simulation.antennaConfiguration do not fit. For the 5G codebook, the total number of antenna has to be equal to 2*N_1*N_2.
Best,
Mariam