Hi Gerard,
You don't mention whether this is new behavior or whether it had existed since you completed your build.? I've had a similar problem after an upgrade, and it turned out to be a cold solder joist on the ground side of the rotary encoder.? I've seen similar issues to what you are reporting from the ground connections are not good.
Good luck,
Dean
KK4DAS