It doesn't matter what codec you render to they will all produce the same file size in XPVC.
If you want lossless quality, use Quicktime Animation Codec. This will produce large files for things like Video; but smaller files when the image has lots of continuous blocks of color (it's RLE compressed).
If you want high quality and smaller file size without Alpha use Prores 422.
If you need alpha and want high quality use Prores 4444.
If you want smaller files from After Effects (but will still be the same size in XPVC), and don't need alpha you can use MJPEG.
#XPression