There's a device called "IP box" which may be able to do that, it's not cheap but a mobile repair/unlocking store would probably have one.
[1] https://www.fonefunshop.com/ip-box-iphone-password-unlock-to...
Out of these retries, at least 1/N correct passcode attempts are needed, so such tools are close to useless if your care about retrieving your data with factory wipe enabled.