A new feature in iOS 17.5 will allow you to submit your iPhone for repair without turning off Find My and Activation Lock. Apple added a new Repair State mode in iOS 17.5 beta 4 for this.
Currently, you must turn off the security feature on your iPhone before submitting it for repair. Failure to do so could prevent Apple technicians from repairing your device.