How to handle conflicting @openzeppelin/contracts versions originating from npm packages

I think this answer might help. Essentially, you can install both versions with aliases.