analogWrite causes I2C encoder lockup

You can install any number of libraries provided they have different names. Then #include the library you want to use.

In case other libraries refer to the standard Wire.h, you can uninstall that library and wait for compiler errors. Then either rename your preferred library into Wire.h, Wire.cpp etc., or update the other libraries to include your preferred library instead of Wire.h.