While running the provided example code, the minimum value of v returned is 0.12157995998859406. This result requires extremely fine discretization, leading to a significantly increased memory requirement (over 500 GiB). I suspect there might be a bug in the code causing this issue. Kindly investigate and resolve it.