Yes, search the forum here
PentaxForums.com - Search Forums with "erratic dial" and you will get several hits of similar problems with *ist, K-7, K-R and even 645D.
It's caused by either a faulty encoder (which needs replacement) or more likely dirt or grease on the contacts of the encoder.
I have heard of people squirting a small amount of (oil free) CO contact cleaner into the e-dial and rotating it.
He'res a thread with photos of someone who disassembeld their K-r to fix the dial with a similar problem. (Not suggesting you do that with a weather sealed K-7 but seeing the phots helps to explain)
https://www.pentaxforums.com/forums/pentax-k-r-forum/145847-k-r-e-dial-repair.html
If there's any warranty left on it, I would send it in.
FWIW My front e-dial is completely knackered on my K-7 because I dropped it directly on the front corner, still inside a bag though.
I found I could work around it with the rear e-dial only.
I just changed the dial setting for rear only and it its fine for Av, Tv, and even M with an apeture ring. M mode with a DA lens is a pain though.