function _refundToken(bytes32 _guid, address _tokenAddress, address _refundAddress, uint _amount, uint _nativeAmount, string memory _reason) internal {
    ...
    // transfer native tokens to refund address and check that this value is less than or equal to msg.value
    if (_nativeAmount > 0 && _nativeAmount <= msg.value) {
        payable(_refundAddress).transfer(_nativeAmount);   // @audit throws error
    }
}
