Hello @annkitaaggarwal,
Commenting out the dispatcher module from pom.xml is not enough, please make sure that the dispatcher module is removed/deleted from the code base (the one that is getting deployed through cloud manager).
Though its recommended to push the dispatcher config changes via cloud manager to the servers, however if you want to manage it separately, you can move it out from the code completely or ignore while pushing the code to adobe code repository..
Thanks