Sometimes set static IP would cause connection issue and that is why the troubleshooter will remove it and set it as automatic. This is a behavior by design, however you may file a report in the Feedback Hub app and request to add functionality to prevent it. It is recommended to setup environment to automatically get the IP and you may set static IP in the router's level. Other option is to use PowerShell to reassign the IP, for example you may use New-NetIPAddress , have a look at:
When I troubleshoot my domain joined computer for internet access, why does the Static IP get removed?
TechQ
236
Reputation points
I am using window server 2022 standard, I have added a computer to my domain, but when it lose internet and customer troubleshoot it, the static IP get changed that I assigned. How to deal with it?