I experienced a similar problem with an afterfire on deceleration. After throwing lots of money and time on it, pulled the head to decarbonize. While checking rockers, one seemed to bind a bit in the high position (closed). Noticed what appeared to be gasket maker chunk in oil tunnel Turns out the spindle and rocker were scored, presumably holding the exhaust open slightly which then allowed intake fuel to detonate in exhaust. I'm no expert but after replacing the spindle and rocker, afterfire stopped.