Home Assistant re-installing packages on restart

I’m a new HA user, running Home Assistant Core on Linux. I have a third-party integration I’ve installed the uses MQTT. I discovered that the installed version of paho-mqtt did not support my integration, so I upgraded paho-mqtt to a newer version. When I did, I got a message that this version conflicts with another automatically installed integration. i.e. Roborock.

Everything was working ok, but I discovered that everytime I restarted HA using systemd, HA was restoring the old version of paho-mqtt, which breaks my third-party integration. I can’t find anything that documents the fact that HA checks installed python packages and changes the version when it sees a conflict.

Is there a configuration option that will stop HA from changing a particular package? What’s the best way to handle a situation like this?