Mixing RAM sizes vs matching RAM sizes: It's fine as long as speed matches

You can mix a 16GB stick with an existing 8GB stick for 24GB total with no instability. The key is both sticks must be the same speed — in this case, DDR4-2666. The ProDesk 400 G5 has two slots and supports up to 32GB.