In 30+ years with Pentax, I can recall only two indicents with defective stuff.
Incident 1) When purchased FA 28/200 zoom lens for my PZ1P (some years ago), the AF went crazy. Went back to store and tested another sample. New one was working fine. Seems the first lens was defective.
Incident 2) After more than a year of having and using my Pentax WP point & shoot, I found a firmware update for it in the Pentax web page. Decided to go ahead and update firmware. After that, camera went crazy. It wouldn't turn off and nothing will work. Solution: It was fixed at local pentax dealer under warranty.
Besides that, I've had numerous incidents of malfunctioning things, but every case was to blame on me, because some bad adjustment, bad lens mounting, user error, bad batteries, etc.
Think about this. If we had as many errors with our Pentax system as "blue screens" with our Windows based computers.... well, enough said