Transimpedance amplifier oscillates
I suggested removing the switch because it had a moderate amount of leakage and capacitance on each input, and you were putting all of the inputs in parallel, multiplying those terms.  The next thing I would try would be to connect just one input on the switch (desolder the other in/out pins) and see if the switch can work in circuit when the other inputs/outputs are floating.  If it can, you probably need to look for a switch IC with better parasitics or use fewer gain settings.