I don’t understand why the Newton method requires so much memory; what has to be stored during the calculations? The requested precision also does not seem to me to be too demanding, and for a large value of gy there should be Exp[-gy] negligible in comparison with Exp[y], which should lead to a trivial solution y=Log[x].
I get Log[10] to 50 digits with your code in V14.1 without any trouble. I can’t imagine the version matters. Maybe try ClearAll[x, y, F, y0, g]; before executing. Or restarting the kernel. As you say, this computation shouldn’t have a memory problem.
I run the test code in batch mode under version 14.1 on a supercomputing cluster, and there is an insufficient memory error independently of whether I request 3850 MB or 7700 MB of memory. I have not tried more, because this seems nonsensical to me to expect that so much memory is needed.
In the batch mode, I believe, everything is cleared before any program is run, as every run begins
with loading the MATHEMATICA package.
So, I still don’t know what might cause such a memory demand. I would appreciate any suggestions.
Some other of my tests suggest that changing the method to Brent makes things even worse.
Is there here any potential problem with overflow or underflow in Exp? Maybe Newton iterations
cause the consecutive approximations to the root to escape into regions of overflow or underflow?
Is there any way to get an information about how these consecutive approximations look like?
The maximum memory used in the successful test by Hans Milton is ca 10 GB !
So, his PC must have a pretty large memory available. And this may indicate that there is no bug,
but for some (unclear to me) reason, the calculations need a lot of memory.