Banks do provide a valuable service and having them reject deposits isn’t a solution.
Unless you only make floating rate loans (which is extremely rare outside of revolving lines like credit cards) then you have exactly the same duration risk problems and you’re actually exposed to much greater credit risk with a loan than you are with a government bond.
Also, floating rate loans and mortgages are super common. Maybe not in US.
Banks are risk sources in the economy, the risk of "what if borrower doesn't pay in full or at all", the law should do everything to prevent banks from being risk sinks in the economy. Because in current setup banks just buy more an more risk and they eventually collapse one way or the other when risk is en masse converted to cost to the people and the economy.
You know, fail early.
SVB bought a load of treasury bonds which is equivalent from a risk perspective from issuing a 10 year (or whatever) loan to the government, right?
Risk.
Every asset is a risk. Banks should have right to do exactly two things. Keep their customers saving and issue loans. There's plenty of risks even in that activity. Every other thing bank does is just piling up risk to unreasonable levels.