Hi Silvio,
you said:
"Is there a possibility to change the settings for the generator?"
No. But you could develop an object style that takes account of this issue.
As far as I can see the offset of the visible elements of the QR code to the frame that contains is 10 Pt.
This allows to set the frame fitting options to:
[1] Fit Contents To Frame
[2] Offset value: 10 Pt
From my German InDesign 2021 where the 10 Pt offset value is translated to millimeters:

Use the frame fitting options with an object style and apply the object style to a given QR code on the page:

You can go one step further and also apply an absolute value for width and height to compensate the fact that the QR code is now scaled to fit the frame. That value can also be part of an object style.
For width and height I did the following in the input field:
Width: [ 30mm - 20 Pt ]
InDesign is calculating the result in the edit fields to the result of 22.944 mm.


Regards,
Uwe Laubender
( ACP )