Trouble with using encoder and pid library together

Yes, apparently it’s writing to the internal position counter maintained by the Encoder library.

I really am grateful for any help on this. I'll look at the libraries you suggested. Thank you.