Mixing RAM sizes is fine — just match speed.
Yes, you can drop a single 16GB stick into your ProDesk 400 G5 alongside the existing 8GB for 24GB total. It will work with no instability.
The G5 has two slots and supports up to 32GB. As long as the new stick is also DDR4-2666 (same speed), the
