I came across something similar for a tool I developed… it turned out that local format settings were the problem. I had to modify my tool to be explicit about what formatting was used.
I have no idea if this is related to what you’re seeing, but it sparked a memory so I thought I’d post.
This is the thread describing the issue I had: CPU Temperature on Windows - #7 by Bedas