See: "Air Force F-35 Lightning IIs Still Can’t Fly Within 25 Miles Of ... Lightning
And: "F-35: despite improvements, Lightnig II still can’t fly in storms
In early 2022 (before those two articles were published), the Air Force said that upgrades were coming to the aircraft’s fuel system to allow operation near lightning.
There's speculation that lightning brought this plane down, hence the "mishap" story.
Do the nitrogen fuel tank systems exist on the older aluminum planes, or just the composite ones like the F35?