optimization – How to minimize a function with two bad scaled unknown variables?

In my research, I have obtained an equation with two unknown variables. I have tried many optimization methods, both gradient-based and gradient-free ones, but unsuccessful. Maybe due to the fact that two variables are badly scaled. The equation f(x,y) is:
I know the solution is x=0.004 and y=400000. But what optimization method is able to find these two results? Is rescaling needed? Thanks in advance.
Kind regards