Repeated calls to QuadraticOptimization

Hi,
to develop a sampler in quadratically constrained set (non convex), I need to repeat calls to the QuadraticOptimization function. My code works with a small number of calls. When this number is higher (in the range of hundreds), the computation blocks, the kernel is still active and the interface is not accessible. I have to stop Mathematica and restart a session.

The necessary files are attached.

Do you have any idea?
Thanks
Christian

Y0.mx (1.38 KB)
input.mx (24.2 KB)