NOTE: When moving a feature away from a pin, make sure to clear the PPS register for that pin.

Code:
RB5PPS = 0                              ' Disable CCP3
RB0PPS = 0                              ' Disable CCP4
Or else you risk having all sorts of annoying surprises; like having a regular pulse coming out of what you thought was an input pin.

In my case, I moved CCP3 and CCP4 to other pins and was trying to use B0 and B5 for a rotary encoder signal. Took me WAAAAY too long to realize what was going on, but a quick google and Ric over at Microchip had the answer:

https://forum.microchip.com/s/topic/...ment=P-2930284