This is where the rule should be changed and follow Cricket's approach, where the decision stands if it's a marginal decision.
If 50% of a players foot is offside ( or some other measure), then the goal stands. Allowing for some potential flaws in the technology.