Linear stability analysis of magnetoconvection in finite-sized systems: competition between spatial confinement and magnetic field | Synapse