Which device do you use? Please attach your project.
I hope you are using PSoC 4M Capsense component.In the architectural TRM you can see "The port 5 pins are hard-coded to the CSD1 block and therefore, cannot be controlled by the CSD0 block. The CSD0 block can be connected to all pins except port 5."
That is causing the issue.