Wash the walnuts and pecans thoroughly and remove excess water.
Roast the walnuts and pecans in a pan until fragrant.
Add erythritol and water to the pan and melt over low heat.
Add the walnuts and pecans to the syrup and simmer on low heat.
When the syrup is almost gone, turn off the heat and spread the mixture in a wide container to cool.