Isn't there any maximum limit for total number of cosigners?
7-of-7 for uncompressed public keys, 15-of-15 for compressed keys, in a P2SH multi-sig. This is based on the limit of 520 bytes as you say.
In taproot, OP_CHECKMULTISIG/OP_CHECKMULTISIGVERIFY is replaced with OP_CHECKSIGADD, which allows up to 999 keys. Here is a transaction which spends a 998-of-999 taproot multisig:
https://mempool.space/tx/7393096d97bfee8660f4100ffd61874d62f9a65de9fb6acf740c4c386990ef73