Dear Hassan
Try to increase k point value of Z direction like
dos = DensityOfStates(
configuration=configuration_obj,
kpoints=MonkhorstPackGrid(1,1,101),
bands_above_fermi_level=5,
energy_zero_parameter=FermiLevel,
)
In my experience it should be over one hundred to get good result.
And kx, ky should be one because the direction is not periodic.
BR