Tried it and another templates as well on several servers with os (windows 10, 2012 R2, 2016) and on powershell 4.0 and 5.1.
This error repeats everywhere and i have no idea how to find the root cause.
Please help to find the solution.
I'd probably start troubleshooting by stripping this down to exactly one thing, trying that, adding one thing back, and seeing where it broke. I'd also check the Debug and Operational event logs for DSC on the affected node.