Your function
tries to convert a binary uint64_t to a string representation in base 10, and fails on 8 bit Arduinos.
My code works.
If you want a different type of conversion, maybe your snippet should have been different?
And please post a complete sketch, not unrelated snippets.