Thank you for reaching out to us here in the forum.
Apple provides free parental controls (Screen Time) for iPhone® and iPad®. If you set up Screen Time on an iPhone®/iPad® and a Screen Time passcode, then the device will automatically require the Screen Time passcode before factory resetting.
I suggest your ally/partner sets up Screen Time on your device so that you cannot factory reset it. Here are some helpful support articles about Screen Time:
- How do I set up Screen Time on iOS 14 or 15?10 - Covenant Eyes
- Use parental controls on your child's iPhone®, iPad®, and iPod touch 10- Apple
I hope this helps,