This article explains which Junos EVO software versions support the FEC Histogram and Statistics feature on QFX5240-64OD switches
FEC Histogram and Statistics: https://www.juniper.net/documentation/us/en/software/junos/ai-ml-evo/topics/concept/fec-histogram-and-stat.html
The FEC Histogram and Statistics feature was introduced in the following Junos EVO releases:
First Available Release: 23.4X100-D31
Mainline Support Begins: 25.4R1-EVO