The earliest recollection of this bug is traced back to PAN-OS 10.2.8 - March 11, 2025.
This bug is fixed in PAN-OS versions 10.2.8.
Fixed an issue where executing the CLI command show rule-hit-count device-group displayed the error message Server error : show rule hit count op-command failed .
For more information:
https://docs.paloaltonetworks.com/pan-os/10-2/pan-os-release-notes/pan-os-10-2-8-known-and-addressed-issues/pan-os-10-2-8-addressed-issues