This is related to issue #16011
Currently, in addmultisigaddress function's code the output type is always given by pwallet->m_default_address_type. (https://github.com/bitcoin/bitcoin/blob/master/src/wallet/rpcwallet.cpp#L1018)
This PR adds a fallback to legacy when one or more provided public keys are uncompressed.