You said it yourself. It's open source. People can contribute voluntarily.
If a decent percentage of the developers quitted or died, then the project would continue being open source, the nodes would continue share blocks and transactions etc. Thereafter, anyone who's willing to contribute can.
(For example) Who takes over the ghost ship if COVID and the next 19 variants get a lot worse?
And how are we supposed to know that? I'm convinced there'll always be a team, isn't that enough?