I’m not sure this has anything to do with VAR. The issue was that the referee applied the wrong sanction for the encroachment - he should have allowed the penalty to be retaken rather than awarding the defending team a free kick.
Bloody weird on so many levels though.