<key>com.apple.developer.healthkit.access</key>
<array/>
Since the message complains about passing an empty array I removed only the <array/> and all worked fine.
HealthKit still listed in XCode capabilities and archive successfully uploaded to TestFlight.