Ideal switches can be too ideal as well. As a minimum, apply good
"on" and "off" resistance values and sane VON/VOFF (hysteresis
there can defeat DC solution, but I like some anyhow, using some
sort of startup circuit).
I have sometimes found switch behavior troublesome and used
a poly vccs to make the same function (basically a multiplier)
given proper control voltages (=0 -> "off", positive value = "on"
resistance scale factor, a minuscule "off" voltage can represent
leakage).
It would not be a terrible idea to put trivial resistors between any
two "ideal" elements. What is "trivial" depends on what you are
up to, but "trivial" can be determined by a sensitivity analysis or
toggled by using variables, to see outcomes.